From b6285800d1100a8f7ea3b21876d061f1f5c917b3 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 22 Nov 2016 18:29:55 +0100 Subject: [PATCH] build: clean up postinst scripts after build OpenWrt does this by default to save some space. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 76cdc42f..98faefbc 100644 --- a/Makefile +++ b/Makefile @@ -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