[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:36 UTC 2008
The following commit has been merged in the master branch:
commit aab6048124f190f7dc6c3e1cc03e18ab81a6ab04
Author: Damyan Ivanov <dmn at debian.org>
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
More information about the Debian-eeepc-devel
mailing list