[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 538cf39d9ab5b03dd95325d90376b9479dd9ee87
Darren Salt
linux at youmustbejoking.demon.co.uk
Wed Feb 4 03:39:24 UTC 2009
The following commit has been merged in the master branch:
commit 538cf39d9ab5b03dd95325d90376b9479dd9ee87
Author: Darren Salt <linux at youmustbejoking.demon.co.uk>
Date: Wed Feb 4 03:36:17 2009 +0000
Correctly report audio mute status when only one channel (of two) is muted.
diff --git a/etc/acpi/actions/volume.sh b/etc/acpi/actions/volume.sh
index 53bab2b..ecde664 100755
--- a/etc/acpi/actions/volume.sh
+++ b/etc/acpi/actions/volume.sh
@@ -34,7 +34,13 @@ show_muteness() {
local label msg status all_equal=1 current
for label in $SOUND_SWITCH; do
current=$($AMIXER get $label |
- sed -n 's/.*\[\(on\|off\)\].*/\1/;ta;d;:a;p;q')
+ sed -n 's/.*\[\(on\|off\)\].*/\1/;ta;d;:a;p')
+ case "$(echo "$current")" in
+ on*off*) current='on[L]'; ;;
+ off*on*) current='on[R]'; ;;
+ on*) current='on'; ;;
+ off*) current='off'; ;;
+ esac
[ "$status" ] || status="$current"
[ "$status" = "$current" ] || all_equal=
msg="$msg $current ($label)"
--
Maintenance of eeepc-acpi-scripts debian package
More information about the Debian-eeepc-commits
mailing list