Created
November 30, 2010 06:06
-
-
Save jevinskie/721245 to your computer and use it in GitHub Desktop.
an upstart script to enable wake-on-lan for all adaptors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment