block-mount: Fixed module loading (double cat is wrong)

SVN-Revision: 28717
This commit is contained in:
Daniel Dickinson 2011-11-02 18:38:38 +00:00
parent b8d90aceb2
commit c4e9e4d27e

View file

@ -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
}