summaryrefslogtreecommitdiff
path: root/packages/zaurusd/files/01-check-toggle-landscape
blob: 13ae9a4e6869569d732806eff46705d3ef490668 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

# Try to determine and ignore false rotation signals caused by
# headphones removal or remote removal remembering the old state.
# OE#3390
if test "`cat /var/run/last-screen-rotation`" = landscape ; then
    exit
fi
echo landscape > /var/run/last-screen-rotation