modules

havner havner w smtp.kamp.pl
Śro, 5 Sty 2005, 10:20:22 CET


Mysle, ze ten patch jest dosc oczywisty.

-- 
Regards    Havner                      {jid,mail}:havner(at)pld-linux.org
PLD developer && PLD 2.0 release manager         http://www.pld-linux.org
PLD LiveCD author                             http://livecd.pld-linux.org
                   "Quis custodiet ipsos custodes?"
-------------- następna część ---------
diff -ur rc-scripts-0.4.0.16.orig/rc.d/rc.sysinit rc-scripts-0.4.0.16/rc.d/rc.sysinit
--- rc-scripts-0.4.0.16.orig/rc.d/rc.sysinit	2004-09-24 01:45:26.000000000 +0200
+++ rc-scripts-0.4.0.16/rc.d/rc.sysinit	2005-01-05 09:58:48.469438712 +0100
@@ -19,6 +19,14 @@
 # Read functions
 . /etc/rc.d/init.d/functions
 
+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
+
 # we need /proc mounted before everything
 mount -n -o gid=17 -t proc /proc /proc
 
@@ -428,7 +436,7 @@
 fi    
     
 # Load sound modules if they need persistent DMA buffers
-if grep -q "options sound dmabuf=1" /etc/modules.conf 2>/dev/null ; then
+if grep -q "^options sound dmabuf=1" "$MODULES_CONF" 2>/dev/null ; then
 	RETURN=0
 	alias=$(/sbin/modprobe -c | egrep -s "^alias[[:space:]]+sound[[:space:]]+" | awk '{ print $3 }')
 	if [ -n "$alias" -a "$alias" != "off" ] ; then


Więcej informacji o liście dyskusyjnej pld-rc-scripts