Skip to content

Instantly share code, notes, and snippets.

@jevinskie
Created November 30, 2010 06:06
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