aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-07-30 17:06:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-07-30 17:06:02 +0000
commitf38b7b65581145f3ea4f53938d89f6ffaccc6168 (patch)
tree9655a9fea3bade492fedb97f666c6a090a238e1e
parent60ad19db7e1806dcffe37b7233a7382d6677ec1d (diff)
downloadupstream-f38b7b65581145f3ea4f53938d89f6ffaccc6168.tar.gz
upstream-f38b7b65581145f3ea4f53938d89f6ffaccc6168.tar.bz2
upstream-f38b7b65581145f3ea4f53938d89f6ffaccc6168.zip
fix kernel postinst scripts
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4336 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/kernel/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/kernel/Makefile b/package/kernel/Makefile
index b1155f4286..e5094ef011 100644
--- a/package/kernel/Makefile
+++ b/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; \