From: Felix Fietkau Date: Mon, 1 Aug 2011 23:58:11 +0000 (+0000) Subject: imagebuilder: clean opkg files if requested (patch from #9866) X-Git-Tag: reboot~16122 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e5e17a1ce8b3a41a4a8339bf6d8d60322de7b736;p=openwrt%2Fstaging%2Fpepe2k.git imagebuilder: clean opkg files if requested (patch from #9866) SVN-Revision: 27872 --- diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile index 002274acaf..902568b6dd 100644 --- a/target/imagebuilder/files/Makefile +++ b/target/imagebuilder/files/Makefile @@ -140,6 +140,7 @@ package_postinst: FORCE IPKG_INSTROOT=$(TARGET_DIR) $(which bash) ./etc/rc.common $$script enable; \ done || true; \ ) + $(if $(CONFIG_CLEAN_IPKG),rm -rf $(TARGET_DIR)/usr/lib/opkg) build_image: FORCE @echo