#!/bin/sh
#
#
#             ****** WOLTIMER START SCRIPT *****


if [ -e /var/plugins/woltimer/.wol ]
then 

rm /var/plugins/woltimer/.wol &

else

touch /var/plugins/woltimer/.wol &

fi

wget -q -O -Y off /tmp/temp.tt http://127.0.0.1/control/message?popup="Wake%20On%20Lan-Timer:%20%C3%A4ndere%20Status"



if pidof woltimerd > /dev/null
then

echo "woltimer Daemon laeuft"

else

echo "starte woltimer Daemon"
touch /var/plugins/woltimer/.wol &
/var/plugins/woltimer/woltimerd &

fi

