]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- no subshell needed and unify modprobe -c callout
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 11 Aug 2009 14:06:53 +0000 (14:06 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 11 Aug 2009 14:06:53 +0000 (14:06 +0000)
svn-id: @10473

rc.d/rc.sysinit

index 88293cb2dae8b20a65e3cdaa5ed8759f5abdf217..950d5d0ebc3c84c9009a686f07ef6ba24af12cb2 100755 (executable)
@@ -575,7 +575,7 @@ if ! is_yes "$VSERVER"; then
        fi
 
        # Load sound modules if they need persistent DMA buffers
-       if (/sbin/modprobe -c 2> /dev/null | grep -q "^options sound dmabuf=1"); then
+       if /sbin/modprobe -c | grep -q "^options sound dmabuf=1"; then
                RETURN=0
                alias=$(/sbin/modprobe -c | grep -sE "^alias[[:space:]]+sound[[:space:]]+" 2>/dev/null | awk '{ print $3 }')
                if [ -n "$alias" -a "$alias" != "off" ] ; then
This page took 0.356169 seconds and 4 git commands to generate.