summaryrefslogtreecommitdiff
path: root/packages/zaurusd/files/zaurus-hinge.matchbox-portrait
diff options
context:
space:
mode:
authorJeremy Laine <jeremy.laine@m4x.org>2007-12-01 10:42:17 +0000
committerJeremy Laine <jeremy.laine@m4x.org>2007-12-01 10:42:17 +0000
commit19c5b1c558152f0720046d98ec65cc1b4aa98a68 (patch)
treeecc7000c6176978f4db0db02bb89ea16c5b054b9 /packages/zaurusd/files/zaurus-hinge.matchbox-portrait
parent82935fa891f97961cd0607261e42fcb3e83be41c (diff)
parentd22ff5dd65b6a89d9b5df4484734f4291ef291bd (diff)
merge of '2683bd9d4ce3415de6e02aa18e8e6f4ee7fbfb5a'
and 'bee176e62f09ed2869211e26933a49bb485a2b2b'
Diffstat (limited to 'packages/zaurusd/files/zaurus-hinge.matchbox-portrait')
-rw-r--r--packages/zaurusd/files/zaurus-hinge.matchbox-portrait5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/zaurusd/files/zaurus-hinge.matchbox-portrait b/packages/zaurusd/files/zaurus-hinge.matchbox-portrait
index bd04d328cc..291617cd02 100644
--- a/packages/zaurusd/files/zaurus-hinge.matchbox-portrait
+++ b/packages/zaurusd/files/zaurus-hinge.matchbox-portrait
@@ -1,7 +1,10 @@
#!/bin/sh
if [ -x ${ZD_BINDIR}/xrandr ]; then
- ${ZD_BINDIR}/xrandr -o left
+ if ! ( xrandr | awk '{print $4}' | grep -q left )
+ then
+ ${ZD_BINDIR}/xrandr -o left
+ fi
fi
# just to be extra safe
sleep 1