#!/bin/sh # This script detects if the wakeup alarm has been set. If so, the script # will shutdown the computer. If the alarm has not been set, the script # sets the wakeup to the next mythfilldatabase time. if [ ! -e /var/run/alarmset ] then /usr/bin/MythSetWakeup 0 fi /sbin/shutdown -P now