Wake on lan script

Posted by Z3Ro in Linux on Wednesday, February 10, 2016
Save the following to /etc/init/wakeonlan:
start on started network script for interface in $(cut -d: -f1 /proc/net/dev | tail -n +3); do logger -t 'wakeonlan init script' enabling wake on lan for $interface ethtool -s $interface wol g done end script

This site uses google analytics, if you want to avoid being tracked you can use the following app by Google to hide yourself from all analytics tracking.
I accept the terms and conditions of this service.