Skip to content
Snippets Groups Projects
Unverified Commit b6285800 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

build: clean up postinst scripts after build

OpenWrt does this by default to save some space.
parent f98b175d
No related merge requests found
...@@ -415,6 +415,7 @@ package_install: FORCE ...@@ -415,6 +415,7 @@ package_install: FORCE
+$(GLUONMAKE) enable_initscripts +$(GLUONMAKE) enable_initscripts
rm -f $(TARGET_DIR)/usr/lib/opkg/lists/* $(TARGET_DIR)/tmp/opkg.lock rm -f $(TARGET_DIR)/usr/lib/opkg/lists/* $(TARGET_DIR)/tmp/opkg.lock
rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.postinst*
# Remove opkg database when opkg is not intalled # Remove opkg database when opkg is not intalled
if [ ! -x $(TARGET_DIR)/bin/opkg ]; then rm -rf $(TARGET_DIR)/usr/lib/opkg; fi if [ ! -x $(TARGET_DIR)/bin/opkg ]; then rm -rf $(TARGET_DIR)/usr/lib/opkg; fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment