]> git.pld-linux.org Git - packages/rc-scripts.git/blob - rc-scripts-modules.patch
- modules patch
[packages/rc-scripts.git] / rc-scripts-modules.patch
1 diff -ur rc-scripts-0.4.0.16.orig/rc.d/rc.sysinit rc-scripts-0.4.0.16/rc.d/rc.sysinit
2 --- rc-scripts-0.4.0.16.orig/rc.d/rc.sysinit    2004-09-24 01:45:26.000000000 +0200
3 +++ rc-scripts-0.4.0.16/rc.d/rc.sysinit 2005-01-05 09:58:48.469438712 +0100
4 @@ -19,6 +19,14 @@
5  # Read functions
6  . /etc/rc.d/init.d/functions
7  
8 +if [ $(kernelverser) = "002006" ]; then
9 +       MODULES_CONF=/etc/modprobe.conf
10 +elif [ -r /etc/modules.conf ]; then
11 +       MODULES_CONF=/etc/modules.conf
12 +else
13 +       MODULES_CONF=/etc/conf.modules
14 +fi
15 +
16  # we need /proc mounted before everything
17  mount -n -o gid=17 -t proc /proc /proc
18  
19 @@ -428,7 +436,7 @@
20  fi    
21      
22  # Load sound modules if they need persistent DMA buffers
23 -if grep -q "options sound dmabuf=1" /etc/modules.conf 2>/dev/null ; then
24 +if grep -q "^options sound dmabuf=1" "$MODULES_CONF" 2>/dev/null ; then
25         RETURN=0
26         alias=$(/sbin/modprobe -c | egrep -s "^alias[[:space:]]+sound[[:space:]]+" | awk '{ print $3 }')
27         if [ -n "$alias" -a "$alias" != "off" ] ; then
This page took 0.059096 seconds and 3 git commands to generate.