diff options
author | Stanislav Brabec <utx@penguin.cz> | 2008-11-10 23:25:32 +0000 |
---|---|---|
committer | utx@penguin.cz <utx@penguin.cz> | 2008-11-11 13:04:23 +0000 |
commit | f9df63752b3510e4b559d4be69e66035f6068182 (patch) | |
tree | 0a2122ef003758914469b95a992329f6ce5f46b0 /packages/zaurusd/files | |
parent | 76e3e6e123c6b2a64905a32e5181e647107e562d (diff) |
zaurusd: Turn backlight off when closing the lid and ~/.norot exists.
Diffstat (limited to 'packages/zaurusd/files')
-rw-r--r-- | packages/zaurusd/files/zaurus-hinge.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/zaurusd/files/zaurus-hinge.in b/packages/zaurusd/files/zaurus-hinge.in index 9670e8803e..0fcad38f98 100644 --- a/packages/zaurusd/files/zaurus-hinge.in +++ b/packages/zaurusd/files/zaurus-hinge.in @@ -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` |