X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/aaa058cf5cf5dc603edcdf09a75eb08c77709a93..6ab92cab84ccfa359f400cd6e4fa82f12c8e4bfe:/package/kernel/Makefile?ds=sidebyside diff --git a/package/kernel/Makefile b/package/kernel/Makefile index b1155f428..e5094ef01 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; \