#!/bin/bash
# Sensor pipe to get output from monitor-sensor
sensorpipe=/tmp/pivotsensor

# if the pipe doesn't exist the autorotate script does not run
if [[ ! -p $sensorpipe ]]; then
    echo "$sensorpipe: no such pipe"
    exit 0
fi
/usr/bin/logger "stopping autorotate"
/usr/bin/echo "orientation quit" > $sensorpipe
exit 0

