Skip to content
Snippets Groups Projects
Unverified Commit 3f8672af 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 f9072a36
No related branches found
No related tags found
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.
Please register or to comment