zaurusd: Turn backlight off when closing the lid and ~/.norot exists.
authorStanislav Brabec <utx@penguin.cz>
Mon, 10 Nov 2008 23:25:32 +0000 (23:25 +0000)
committerutx@penguin.cz <utx@penguin.cz>
Tue, 11 Nov 2008 13:04:23 +0000 (13:04 +0000)
packages/zaurusd/files/zaurus-hinge.in
packages/zaurusd/zaurusd_svn.bb

index 9670e88..0fcad38 100644 (file)
@@ -21,13 +21,18 @@ fi
 
 panel_user="`ps aux|grep matchbox-panel|grep -v grep | awk '{print $1}'`"
 
+STATE=$1
+
 # touch ~/.norot can disable rotation.
 if test -f /home/$panel_user/.norot ; then
+  if [ $STATE = "3" ]; then
+       . /etc/zaurusd/hinge-close.d/00-backlight-off
+  else
+       . /etc/zaurusd/hinge-landscape.d/00-backlight-on
+  fi
   exit
 fi
 
-STATE=$1
-
 if [ $STATE = "3" ]; then
 
   for script in `ls -1 /etc/zaurusd/hinge-close.d`
index be9379e..2ad405e 100644 (file)
@@ -4,7 +4,7 @@ LICENSE = "GPL"
 DEPENDS = "tslib"
 RDEPENDS = "procps"
 PV = "0.0+svn${SRCDATE}"
-PR = "r17"
+PR = "r18"
 
 SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=zaurusd;proto=http \
            file://zaurus-hinge.in \