projects
/
grml-autoconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f95a8d0
)
fix the soundcard fix
author
Christian Hofstaedtler
<ch@grml.org>
Tue, 28 Dec 2010 22:02:10 +0000
(23:02 +0100)
committer
Christian Hofstaedtler
<ch@grml.org>
Tue, 28 Dec 2010 22:02:10 +0000
(23:02 +0100)
for cards with 2digit ids we wouldn't display the correct name.
autoconfig.functions
patch
|
blob
|
history
diff --git
a/autoconfig.functions
b/autoconfig.functions
index
23b4015
..
386ac40
100755
(executable)
--- 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