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

SVN-Revision: 28717
lede-17.01
Daniel Dickinson 2011-11-02 18:38:38 +00:00
parent b8d90aceb2
commit c4e9e4d27e
1 changed files with 1 additions and 1 deletions

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
}