mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-17 23:03:44 +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:
parent
3ce2455282
commit
93005b12c5
@ -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 New Issue
Block a user