[Debian-eeepc-devel] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. f8367bd3d1a0ceb9675ee6781aec3053efbb54f8

Damyan Ivanov dmn at debian.org
Fri Sep 5 22:40:37 UTC 2008


The following commit has been merged in the master branch:
commit 7244e482907cd1d458563d19f7ac097b2a5a913f
Author: Damyan Ivanov <dmn at debian.org>
Date:   Sat Sep 6 00:59:17 2008 +0300

    hotkey.sh: move camera toggling in a function; detect unavailable camera

diff --git a/actions/hotkey.sh b/actions/hotkey.sh
index cb4ae6b..589e5e9 100755
--- a/actions/hotkey.sh
+++ b/actions/hotkey.sh
@@ -91,6 +91,15 @@ show_camera() {
     fi
 }
 
+handle_camera_toggle() {
+    if [ -e $CAM_CTL ]; then
+	toggle_camera
+	show_camera
+    else
+	notify Camera unavailable
+    fi
+}
+
 #show_brightness() {
 #    # final digit of ACPI code is brightness level in hex
 #    level=0x${code:${#code}-1}
@@ -141,8 +150,7 @@ case $code in
 	;;
     0000001c)
 	# soft-buton 3 -- toggle camera
-	toggle_camera
-	show_camera
+	handle_camera_toggle
 	;;
     0000001d)
 	# soft-buton 4 -- toggle bluetooth

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-devel mailing list