#!/bin/bash # # wakes up a set computer after a specified amount of time # logging included # # MAC address scrambled since I don't know what kind of funny stuff you can do with it, but as far as I know there's nothing you can do # # contact: Sebastian 'gonX' J. # logLocation=/var/log/wol.log computerToWol=00:1F:BC:00:00:00 if [ ! -e $1 ]; then echo waking up $computerToWol in $1 echo Script launched at `date` to launch $computerToWol after $1 >> $logLocation sleep $1 && wol $computerToWol >> $logLocation & else echo waking up $computerToWol NOW echo Script launched at `date` to launch $computerToWol immediately >> $logLocation wol $computerToWol >> $logLocation fi