block-mount: Fixed module loading (double cat is wrong)
SVN-Revision: 28717
This commit is contained in:
parent
b8d90aceb2
commit
c4e9e4d27e
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ er_load_modules() {
|
||||||
ln -sf /lib/modules/*/* /tmp/overlay/lib/modules/*/* /tmp/extroot_modules/modules
|
ln -sf /lib/modules/*/* /tmp/overlay/lib/modules/*/* /tmp/extroot_modules/modules
|
||||||
local modules="$(cat /tmp/extroot_modules/modules.d/* 2>/dev/null)"
|
local modules="$(cat /tmp/extroot_modules/modules.d/* 2>/dev/null)"
|
||||||
cd /tmp/extroot_modules/modules && [ -n "$modules" ] && {
|
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
|
rm -rf /tmp/extroot_modules
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue