#!/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`" = portait ; then
    exit
fi
echo portait > /var/run/last-screen-rotation