X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/801c73f8b8e222e62467a82643cb9f927a840365..77ec3b2de9bb1880b258ec6aaf4949f146f6fd8d:/package/block-mount/files/extmount.sh diff --git a/package/block-mount/files/extmount.sh b/package/block-mount/files/extmount.sh index 41a0e2386..d6387cc58 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 }