mirror of https://github.com/hak5/openwrt.git
block-mount: Fixed module loading (double cat is wrong)
SVN-Revision: 28717lede-17.01
parent
b8d90aceb2
commit
c4e9e4d27e
|
@ -20,7 +20,7 @@ er_load_modules() {
|
|||
ln -sf /lib/modules/*/* /tmp/overlay/lib/modules/*/* /tmp/extroot_modules/modules
|
||||
local modules="$(cat /tmp/extroot_modules/modules.d/* 2>/dev/null)"
|
||||
cd /tmp/extroot_modules/modules && [ -n "$modules" ] && {
|
||||
cat $modules | sed -e 's/^\([^#].*\)/insmod \.\/\1.ko/'| sh 2>&- || :
|
||||
echo "$modules" | sed -e 's/^\([^#].*\)/insmod \.\/\1.ko/'| sh 2>&- || :
|
||||
}
|
||||
rm -rf /tmp/extroot_modules
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue