From b064616777dd801aab318a5d1cb74bce13a2b390 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 9 Nov 2007 11:14:30 +0000 Subject: [PATCH] - show and load alias name itself - don't play with kernel loglevels Changed files: alsasound.init -> 1.19 --- alsasound.init | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/alsasound.init b/alsasound.init index 87312dd..c0f9917 100644 --- a/alsasound.init +++ b/alsasound.init @@ -35,27 +35,21 @@ driver_start() # # insert all sound modules # - if OLDLOGLEV=$(awk '{print $1}' < /proc/sys/kernel/printk 2> /dev/null); then - /sbin/loglevel 1 - fi - modprobe -c | awk '$1 == "alias" && $3 != "off" && ($2 ~ /^snd-card-[0-9]$/) {print $2}' | \ + modprobe -c | awk '$1 == "alias" && $3 != "off" && ($2 ~ /^snd-card-[0-9]$/) {print $3}' | \ while read line; do \ msg_starting "sound driver: $line" busy /sbin/modprobe $line ok done - modprobe -c | awk '$1 == "alias" && $3 != "off" && ($2 ~ /^sound-service-[0-9]-[0-9]+$/) {print $2}' | \ + modprobe -c | awk '$1 == "alias" && $3 != "off" && ($2 ~ /^sound-service-[0-9]-[0-9]+$/) {print $3}' | \ while read line; do \ msg_starting "sound driver: $line" busy /sbin/modprobe $line ok done - if [ -n "$OLDLOGLEV" ]; then - /sbin/loglevel "$OLDLOGLEV" - fi - # + # restore driver settings # if [ -x /usr/sbin/alsactl ]; then -- 2.44.0