1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 05:11:46 +02:00

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28717 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
cshore 2011-11-02 18:38:38 +00:00
parent 3ce2455282
commit 93005b12c5

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
}