package: fix insmod on install
the procd changes broke the postinst insmod. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37015
This commit is contained in:
parent
3df61e8279
commit
43a3d87b83
2 changed files with 8 additions and 1 deletions
|
@ -105,7 +105,7 @@ define ModuleAutoLoad
|
||||||
echo "#!/bin/sh" > $(2)/CONTROL/postinst; \
|
echo "#!/bin/sh" > $(2)/CONTROL/postinst; \
|
||||||
echo "[ -z \"\$$$$$$$$IPKG_INSTROOT\" ] || exit 0" >> $(2)/CONTROL/postinst; \
|
echo "[ -z \"\$$$$$$$$IPKG_INSTROOT\" ] || exit 0" >> $(2)/CONTROL/postinst; \
|
||||||
echo ". /lib/functions.sh" >> $(2)/CONTROL/postinst; \
|
echo ". /lib/functions.sh" >> $(2)/CONTROL/postinst; \
|
||||||
echo "load_modules $$$$$$$$modules" >> $(2)/CONTROL/postinst; \
|
echo "insert_modules $$$$$$$$modules" >> $(2)/CONTROL/postinst; \
|
||||||
chmod 0755 $(2)/CONTROL/postinst; \
|
chmod 0755 $(2)/CONTROL/postinst; \
|
||||||
fi
|
fi
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -203,6 +203,13 @@ config_list_foreach() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
insert_modules() {
|
||||||
|
[ -d /etc/modules.d ] && {
|
||||||
|
cd /etc/modules.d
|
||||||
|
sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
include() {
|
include() {
|
||||||
local file
|
local file
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue