[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 1.1.0-beta.1-16-g64b40be

Raphael Geissert atomo64 at gmail.com
Fri May 29 18:14:12 UTC 2009


The following commit has been merged in the master branch:
commit 64b40be8fe2a36553a59f160955116ca17bfad38
Author: Raphael Geissert <atomo64 at gmail.com>
Date:   Fri May 29 13:14:51 2009 -0500

    Avoid code duplication for no reason

diff --git a/etc/acpi/actions/hotkey.sh b/etc/acpi/actions/hotkey.sh
index 1db545c..6fc3f59 100755
--- a/etc/acpi/actions/hotkey.sh
+++ b/etc/acpi/actions/hotkey.sh
@@ -135,7 +135,7 @@ case $code in
 
     # --/F7 - backlight off
     00000016)
-	if [ "${FnF_BACKLIGHTOFF:-handle_blank_screen}" != 'NONE' ]; then
+	if [ "${FnF_BACKLIGHTOFF}" != 'NONE' ]; then
 	    ${FnF_BACKLIGHTOFF:-handle_blank_screen}
 	fi
 	;;
@@ -154,21 +154,21 @@ case $code in
 
     # F7/F10 - mute/unmute speakers
     00000013)
-	if [ "${FnF_MUTE:-handle_mute_toggle}" != 'NONE' ]; then
+	if [ "${FnF_MUTE}" != 'NONE' ]; then
 	    ${FnF_MUTE:-handle_mute_toggle}
 	fi
 	;;
 
     # F8/F11 - decrease volume
     00000014)
-	if [ "${FnF_VOLUMEDOWN:-handle_volume_down}" != 'NONE' ]; then
+	if [ "${FnF_VOLUMEDOWN}" != 'NONE' ]; then
 	    ${FnF_VOLUMEDOWN:-handle_volume_down}
 	fi
 	;;
 
     # F9/F12 - increase volume
     00000015)
-	if [ "${FnF_VOLUMEUP:-handle_volume_up}" != 'NONE' ]; then
+	if [ "${FnF_VOLUMEUP}" != 'NONE' ]; then
 	    ${FnF_VOLUMEUP:-handle_volume_up}
 	fi
 	;;
@@ -180,7 +180,7 @@ case $code in
 
     # Soft button 1
     0000001a)
-	if [ "${SOFTBTN1_ACTION:-handle_blank_screen}" != 'NONE' ]; then
+	if [ "${SOFTBTN1_ACTION}" != 'NONE' ]; then
 	    ${SOFTBTN1_ACTION:-handle_blank_screen}
 	fi
 	;;
@@ -194,14 +194,14 @@ case $code in
 
     # Soft button 3
     0000001c)
-	if [ "${SOFTBTN3_ACTION:-handle_camera_toggle}" != 'NONE' ]; then
+	if [ "${SOFTBTN3_ACTION}" != 'NONE' ]; then
 	    ${SOFTBTN3_ACTION:-handle_camera_toggle}
 	fi
 	;;
 
     # Soft button 4
     0000001d)
-	if [ "${SOFTBTN4_ACTION:-handle_bluetooth_toggle}" != 'NONE' ]; then
+	if [ "${SOFTBTN4_ACTION}" != 'NONE' ]; then
 	    ${SOFTBTN4_ACTION:-handle_bluetooth_toggle}
 	fi
 	;;

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-commits mailing list