diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-07-30 17:06:02 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-07-30 17:06:02 +0000 |
commit | af8a98116ebd7b51e1b6c89f49475f555eaa66ef (patch) | |
tree | 6cf2e3caab5e621b7e03053c59c1f6223a6a6320 | |
parent | eb09c3827062e35c481401bceae3e21bd6f42ac2 (diff) | |
download | mtk-20170518-af8a98116ebd7b51e1b6c89f49475f555eaa66ef.zip mtk-20170518-af8a98116ebd7b51e1b6c89f49475f555eaa66ef.tar.gz mtk-20170518-af8a98116ebd7b51e1b6c89f49475f555eaa66ef.tar.bz2 |
fix kernel postinst scripts
SVN-Revision: 4336
-rw-r--r-- | openwrt/package/kernel/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openwrt/package/kernel/Makefile b/openwrt/package/kernel/Makefile index b1155f4..e5094ef 100644 --- a/openwrt/package/kernel/Makefile +++ b/openwrt/package/kernel/Makefile @@ -45,8 +45,8 @@ define ModuleAutoLoad $(3) \ if [ -n "$$$$$$$$modules" ]; then \ mkdir -p $(2)/etc/modules.d; \ - echo "#!/bin/sh" >> $(2)/CONTROL/postinst; \ - echo "[ -z \"\$$$$$$$$IPKG_INSTROOT\" ] || exit" >> $(2)/CONTROL/postinst; \ + echo "#!/bin/sh" > $(2)/CONTROL/postinst; \ + echo "[ -z \"\$$$$$$$$IPKG_INSTROOT\" ] || exit 0" >> $(2)/CONTROL/postinst; \ echo ". /etc/functions.sh" >> $(2)/CONTROL/postinst; \ echo "load_modules $$$$$$$$modules" >> $(2)/CONTROL/postinst; \ chmod 0755 $(2)/CONTROL/postinst; \ |