build: clean up postinst scripts after build

OpenWrt does this by default to save some space.
This commit is contained in:
Matthias Schiffer 2016-11-22 18:29:55 +01:00
parent f98b175da1
commit b6285800d1
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -415,6 +415,7 @@ package_install: FORCE
+$(GLUONMAKE) enable_initscripts
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
if [ ! -x $(TARGET_DIR)/bin/opkg ]; then rm -rf $(TARGET_DIR)/usr/lib/opkg; fi