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

arekm arekm at pld-linux.org
Tue Aug 11 09:08:36 CEST 2009


Author: arekm
Date: Tue Aug 11 09:08:36 2009
New Revision: 10469

Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
Don't use modprobe.conf file. Use /sbin/modprobe -c output instead.

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 09:08:36 2009
@@ -575,15 +575,7 @@
 	fi
 
 	# Load sound modules if they need persistent DMA buffers
-	if [ $(kernelverser) = "002006" ]; then
-		MODULES_CONF=/etc/modprobe.conf
-	elif [ -r /etc/modules.conf ]; then
-		MODULES_CONF=/etc/modules.conf
-	else
-		MODULES_CONF=/etc/conf.modules
-	fi
-
-	if grep -q "^options sound dmabuf=1" "$MODULES_CONF" 2>/dev/null ; then
+	if (/sbin/modprobe -c 2> /dev/null | 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