summaryrefslogtreecommitdiff
path: root/packages/zaurusd/files/zaurus-hinge.matchbox-portrait
diff options
context:
space:
mode:
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