[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, acpi-support-integration, updated. 1.1.5-77-g12ebb23

Luca Niccoli lultimouomo at gmail.com
Sun Nov 7 15:55:07 UTC 2010


The following commit has been merged in the acpi-support-integration branch:
commit 12ebb233e9a42c9b817a8bf8698fd8314da3264e
Author: Luca Niccoli <lultimouomo at gmail.com>
Date:   Sun Nov 7 16:27:31 2010 +0100

    Fix bashism in hotkey.sh
    
    Signed-off-by: Luca Niccoli <lultimouomo at gmail.com>

diff --git a/eeepc-acpi-scripts/hotkey.sh b/eeepc-acpi-scripts/hotkey.sh
index 67b940e..caa4ccd 100755
--- a/eeepc-acpi-scripts/hotkey.sh
+++ b/eeepc-acpi-scripts/hotkey.sh
@@ -22,8 +22,7 @@ if [ -e "$DEFAULT" ]; then . "$DEFAULT"; fi
 code=$3
 value=$(test "x$1" = x- && cat "$BACKLIGHT" || echo "0x$3")
 
-LINUX_FULL_VER=`uname -r`
-LINUX_MINOR_REV=${LINUX_FULL_VER:4:5}
+LINUX_MINOR_REV=`uname -r | cut -c 5,6`
 
 # In case keys are doubly-reported as hotkey and something else.
 # It's random (and irrelevant) which is seen first.

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-commits mailing list