SOURCES: acpid.button.sh - simpler odd/even check
havner
havner at pld-linux.org
Mon Jul 24 18:12:22 CEST 2006
Author: havner Date: Mon Jul 24 16:12:22 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- simpler odd/even check
---- Files affected:
SOURCES:
acpid.button.sh (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/acpid.button.sh
diff -u SOURCES/acpid.button.sh:1.2 SOURCES/acpid.button.sh:1.3
--- SOURCES/acpid.button.sh:1.2 Mon Jul 24 18:02:24 2006
+++ SOURCES/acpid.button.sh Mon Jul 24 18:12:17 2006
@@ -31,9 +31,8 @@
# 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"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/acpid.button.sh?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list