From: Christian Hofstaedtler Date: Tue, 28 Dec 2010 22:02:10 +0000 (+0100) Subject: fix the soundcard fix X-Git-Tag: v0.9.24~3 X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=27f84387af177979e83884744f9e3e5b0778136c;hp=f95a8d0413e8bd2aede866e66cbf0c0d421d8550 fix the soundcard fix for cards with 2digit ids we wouldn't display the correct name. --- diff --git a/autoconfig.functions b/autoconfig.functions index 23b4015..386ac40 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1499,7 +1499,7 @@ config_mixer () { fi for card in $(cat /proc/asound/cards| grep -e '^\s*[0-9]' | awk '{print $1}') ; do - einfo "Configuring soundcard \"$(cat /proc/asound/cards| awk -F\[ '/^ '$card'/{ FS=" "; $0=$2; print $1 }' )\"" + einfo "Configuring soundcard \"$(awk -F\[ '/^ *'$card' \[/{ FS=" "; $0=$2; print $1}' < /proc/asound/cards)\"" eindent if checkbootparam 'vol' ; then