]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- use shell construct
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 25 Aug 2009 10:25:07 +0000 (10:25 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 25 Aug 2009 10:25:07 +0000 (10:25 +0000)
svn-id: @10493

rc.d/rc.sysinit

index 0e0b55665ded6d65288708113d76ed2a5be2ff94..d25fb3850fbcd4f63b67d1f82e99e381c12033e0 100755 (executable)
@@ -101,7 +101,8 @@ load_kernel_modules() {
                echo '' # make sure there is a LF at the end
        ) | while read module args; do
                [ -z "$module" ] && continue
-               args=$(echo $args | awk '{ gsub(/#.*/, ""); print; }')
+               # strip comments
+               args=${args%%#*}
                modprobe -s $module -- $args
        done
 }
This page took 0.038137 seconds and 4 git commands to generate.