SVN: rc-scripts/trunk/rc.d/rc.sysinit

glen glen at pld-linux.org
Tue Aug 11 16:06:53 CEST 2009


Author: glen
Date: Tue Aug 11 16:06:53 2009
New Revision: 10473

Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
- no subshell needed and unify modprobe -c callout

Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit	(original)
+++ rc-scripts/trunk/rc.d/rc.sysinit	Tue Aug 11 16:06:53 2009
@@ -575,7 +575,7 @@
 	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


More information about the pld-cvs-commit mailing list