Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
an upstart script to enable wake-on-lan for all adaptors
start on started network
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
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.