diff options
Diffstat (limited to 'packages/zaurusd/files/zaurus-hinge.in')
-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` |