summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2020-11-05 19:58:09 -0500
committerMatt Turner <mattst88@gentoo.org>2020-11-05 19:58:09 -0500
commit4bdbca1aa0a566f03721a9d3622102d5d2fab318 (patch)
treeee7d56a48270529b5c09db8b4481e8dcb968d562
parentautoconfig: Fix logic error (diff)
downloadlivecd-tools-4bdbca1aa0a566f03721a9d3622102d5d2fab318.tar.gz
livecd-tools-4bdbca1aa0a566f03721a9d3622102d5d2fab318.tar.bz2
livecd-tools-4bdbca1aa0a566f03721a9d3622102d5d2fab318.zip
unmute: Rewrite without awk2.8
Signed-off-by: Matt Turner <mattst88@gentoo.org>
-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 ]