]> git.pld-linux.org Git - packages/acpid.git/commitdiff
- simpler odd/even check
authorhavner <havner@pld-linux.org>
Mon, 24 Jul 2006 16:12:17 +0000 (16:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    acpid.button.sh -> 1.3

acpid.button.sh

index 02d7864256ae31e27f2b133e78cc403fd99e7d3f..d606bfc2e0acf4717edfa59b22b061059b3027d4 100644 (file)
@@ -31,9 +31,8 @@ case "$1" in
                # if you want to specify separate commands for
                # lid open/close uncomment this section:
 
-               #NUMBER=`printf "%d" "0x$4"`
-               #EVEN=`dc -e "1 k $NUMBER 2 / p" | grep "\.0"`
-               #if [ ! "$EVEN" ]; then
+               #ODD=`echo $4 | grep "1$\|3$\|5$\|7$\|9\|b$\|d$\|f$"`
+               #if [ "$ODD" ]; then
                #       logger "acpid: lid close action is not defined"
                #else
                #       logger "acpid: lid open action is not defined"
This page took 0.032552 seconds and 4 git commands to generate.