#!/bin/sh
logger "reboot script $BUTTON $ACTION for $SEEN seconds by $PPID"
[ "${ACTION}" = "released" ] || exit 0

if [ "$SEEN" -ge 5 ]
then
	echo "REBOOT" > /dev/console
	sync
	reboot
fi

return 0
