Wake on lan script

Posted by Z3Ro in Linux on Wednesday, February 10, 2016
Type: POST
Size: 0 KB
Dimensions: 0x0
Added: Wednesday, February 10, 2016 17:31
Modified: Monday, November 30, -0001 00:00
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.