diff options
author | Stanislav Brabec <utx@penguin.cz> | 2008-02-19 17:08:48 +0000 |
---|---|---|
committer | Stanislav Brabec <utx@penguin.cz> | 2008-02-19 17:08:48 +0000 |
commit | 74a532e4bc5f8b037d050a0a1fb66ea35eeac1ec (patch) | |
tree | 07fb39ed2aac11fa1b24c57cbdd7e47b854e9f20 /packages/zaurusd/files/zaurus-hinge.in | |
parent | 13b71d3646054a698956460aa4246d9c9167dee4 (diff) |
- Ignore false toggle signals (work-around for OE#3390).
- Fixed default ALSA state for SL-Cxx00 (OE#2617).
- Do not alter incorrect mixer levels by zaurus-mixer-callback.
- Allow to disable rotation by touch ~/.norot.
- Fixed detection of panel_user.
Diffstat (limited to 'packages/zaurusd/files/zaurus-hinge.in')
-rw-r--r-- | packages/zaurusd/files/zaurus-hinge.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/zaurusd/files/zaurus-hinge.in b/packages/zaurusd/files/zaurus-hinge.in index f719ba3c76..9670e8803e 100644 --- a/packages/zaurusd/files/zaurus-hinge.in +++ b/packages/zaurusd/files/zaurus-hinge.in @@ -19,9 +19,12 @@ if [ -z "$1" ]; then exit 1 fi -panel_user="`ps aux|grep matchbox-panel|grep -v grep | awk '{print $2}'`" - +panel_user="`ps aux|grep matchbox-panel|grep -v grep | awk '{print $1}'`" +# touch ~/.norot can disable rotation. +if test -f /home/$panel_user/.norot ; then + exit +fi STATE=$1 |