The following commit has been merged in the master branch:
commit aab6048124f190f7dc6c3e1cc03e18ab81a6ab04
Author: Damyan Ivanov <[EMAIL PROTECTED]>
Date:   Sat Sep 6 00:34:08 2008 +0300

    hotkey.sh: move bluetooth key handling in a function; detect unavailable 
bluetooth

diff --git a/actions/hotkey.sh b/actions/hotkey.sh
index d761e9b..cb4ae6b 100755
--- a/actions/hotkey.sh
+++ b/actions/hotkey.sh
@@ -74,6 +74,15 @@ show_bluetooth() {
     fi
 }
 
+handle_bluetooth_toggle() {
+    if [ -e $BT_CTL ] || [ "$BLUETOOTH_FALLBACK_TO_HCITOOL" = "yes" ]; then
+       toggle_bluetooth
+       show_bluetooth
+    else
+       notify Bluetooth unavailable
+    fi
+}
+
 show_camera() {
     if camera_is_on; then
        notify Camera Enabled
@@ -137,7 +146,6 @@ case $code in
        ;;
     0000001d)
        # soft-buton 4 -- toggle bluetooth
-       toggle_bluetooth
-       show_bluetooth
+       handle_bluetooth_toggle
        ;;
 esac

-- 
Maintenance of eeepc-acpi-scripts debian package

_______________________________________________
Debian-eeepc-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel

Reply via email to