summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xoss_mute.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/oss_mute.sh b/oss_mute.sh
index cdb2e84..b87d70e 100755
--- a/oss_mute.sh
+++ b/oss_mute.sh
@@ -1,6 +1,6 @@
#!/bin/dash
#----------------------------------------------------
-# Version: 0.1.0
+# Version: 0.2.0
# Author: Florian "Bluewind" Pritz <f-p@gmx.at>
#
# Copyright (C) 2008-2009 Florian Pritz
@@ -11,8 +11,8 @@
#----------------------------------------------------
# script to (un)mute oss devices
#----------------------------------------------------
-MODE=1
-CONTROL="jack.black.mute"
+MODE="$1"
+CONTROL="$2"
if [ $MODE = 1 ]; then
MUTE=$(ossmix | grep "^$CONTROL\ " | awk '{print $4}' | awk -F')' '{print $1}')