summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/unmute2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/unmute b/init.d/unmute
index e4892a8..6c588ff 100644
--- a/init.d/unmute
+++ b/init.d/unmute
@@ -9,7 +9,7 @@ start()
{
if [ -e /proc/asound/cards ]
then
- for i in $(cat /proc/asound/cards | awk '{print $1}' | grep ^[[:digit:]])
+ for i in $(grep -o '^\s\?[0-9]\+' /proc/asound/cards)
do
ebegin "Unmuting sound card $i"
if [ -d /proc/asound/card$i ] && [ -x /usr/bin/amixer ]