From: Daniel Dickinson Date: Wed, 2 Nov 2011 18:38:38 +0000 (+0000) Subject: block-mount: Fixed module loading (double cat is wrong) X-Git-Tag: reboot~15694 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c4e9e4d27ed84b056e7e195826e782cad3c7230b;p=openwrt%2Fstaging%2Fblogic.git block-mount: Fixed module loading (double cat is wrong) SVN-Revision: 28717 --- diff --git a/package/block-mount/files/extmount.sh b/package/block-mount/files/extmount.sh index 41a0e238632c..d6387cc58840 100644 --- a/package/block-mount/files/extmount.sh +++ b/package/block-mount/files/extmount.sh @@ -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 }