]> git.pld-linux.org Git - packages/alsa-utils.git/commitdiff
- use modprobe -c to get modprobe config (so alsaconf generated /etc/modprobe.d/sound...
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 1 Oct 2007 16:38:55 +0000 (16:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    alsasound.init -> 1.17

alsasound.init

index 0239a60875aa6543106307e6f0fc1e0f6f6c6be6..9a13f65e4bcbb6a7f8b05b749532e73427c089c6 100644 (file)
 # Source function library.
 . /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
-
 driver_start()
 {
   #
@@ -46,14 +38,14 @@ driver_start()
   if OLDLOGLEV=$(awk '{print $1}' < /proc/sys/kernel/printk 2> /dev/null); then
        /sbin/loglevel 1
   fi
-  awk '$1 == "alias" && $3 != "off" && ($2 ~ /^snd-card-[0-9]$/) {print $2}' < $MODULES_CONF | \
+  modprobe -c | awk '$1 == "alias" && $3 != "off" && ($2 ~ /^snd-card-[0-9]$/) {print $2}' | \
     while read line; do \
       msg_starting "sound driver: $line"
       busy
       /sbin/modprobe $line
       ok
     done
-  awk '$1 == "alias" && $3 != "off" && ($2 ~ /^sound-service-[0-9]-[0-9]+$/) {print $2}' < $MODULES_CONF | \
+  modprobe -c | awk '$1 == "alias" && $3 != "off" && ($2 ~ /^sound-service-[0-9]-[0-9]+$/) {print $2}' | \
     while read line; do \
       msg_starting "sound driver: $line"
       busy
This page took 0.670115 seconds and 4 git commands to generate.