Skip to content

Instantly share code, notes, and snippets.

@jevinskie
Created November 30, 2010 06:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jevinskie/721245 to your computer and use it in GitHub Desktop.
Save jevinskie/721245 to your computer and use it in GitHub Desktop.
an upstart script to enable wake-on-lan for all adaptors
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