postinst trigger: the new postinst trigger broke IB
[openwrt/staging/chunkeey.git] / include / package-ipkg.mk
index 494444613ae66079e883907bfa3520513827482c..7cea44af656a9294ea34e94dca8bdee003f00dd5 100644 (file)
@@ -176,6 +176,7 @@ ifeq ($(DUMP),)
        chmod 644 $$(IDIR_$(1))/CONTROL/control
        ( \
                echo "#!/bin/sh"; \
+               echo "[ \"\$$$${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; \
                echo ". \$$$${IPKG_INSTROOT}/lib/functions.sh"; \
                echo "default_postinst \$$$$0 \$$$$@"; \
        ) > $$(IDIR_$(1))/CONTROL/postinst