mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
modules: fix postinst generation for kernel modules
Fixes ticket #19352. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45367 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -154,10 +154,13 @@ config_list_foreach() {
|
||||
}
|
||||
|
||||
insert_modules() {
|
||||
[ -d /etc/modules.d ] && {
|
||||
cd /etc/modules.d
|
||||
sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
|
||||
}
|
||||
for m in $*; do
|
||||
if [ -f /etc/modules.d/$m ]; then
|
||||
sed 's/^[^#]/insmod &/' /etc/modules.d/$m | ash 2>&- || :
|
||||
else
|
||||
modprobe $m
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
default_prerm() {
|
||||
|
||||
Reference in New Issue
Block a user