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

Nico Golde nion at debian.org
Fri Mar 7 15:37:25 UTC 2008


The following commit has been merged in the master branch:
commit a2a9a94f604953b97241c46365963874cfd3b205
Author: Nico Golde <nion at debian.org>
Date:   Fri Mar 7 16:37:39 2008 +0100

    fix commenting wrong function

diff --git a/actions/hotkey.sh b/actions/hotkey.sh
index 51a6005..c7abd1b 100755
--- a/actions/hotkey.sh
+++ b/actions/hotkey.sh
@@ -28,14 +28,14 @@ notify() {
     fi
 }
 
-#show_wireless() {
-#    if grep -q ath0 /proc/net/wireless; then
-#	status=On
-#    else
-#	status=Off
-#    fi
-#    notify Wireless $status
-#}
+show_wireless() {
+    if grep -q ath0 /proc/net/wireless; then
+	status=On
+    else
+	status=Off
+    fi
+    notify Wireless $status
+}
 
 show_muteness() {
     status=$(amixer get $VOLUME_LABEL | sed -n '/%/{s/.*\[\(on\|off\)\].*/\u\1/p;q}')
@@ -47,13 +47,13 @@ show_volume() {
     notify Volume $percent
 }
 
-show_brightness() {
-    # final digit of ACPI code is brightness level in hex
-    level=0x${code:${#code}-1}
-    # convert hex digit to percent
-    percent=$(((100 * $level + 8) / 15))
-    notify Brightness $percent
-}
+#show_brightness() {
+#    # final digit of ACPI code is brightness level in hex
+#    level=0x${code:${#code}-1}
+#    # convert hex digit to percent
+#    percent=$(((100 * $level + 8) / 15))
+#    notify Brightness $percent
+#}
 
 case $code in
     # Fn+F2 -- toggle wireless

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-devel mailing list