block-mount: Fixed module loading (double cat is wrong)
authorDaniel Dickinson <crazycshore@gmail.com>
Wed, 2 Nov 2011 18:38:38 +0000 (18:38 +0000)
committerDaniel Dickinson <crazycshore@gmail.com>
Wed, 2 Nov 2011 18:38:38 +0000 (18:38 +0000)
SVN-Revision: 28717

package/block-mount/files/extmount.sh

index 41a0e23..d6387cc 100644 (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
 }