Skip to content

Instantly share code, notes, and snippets.

@kozak127
Last active September 12, 2017 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kozak127/992d6d425a05499426bfb8b4858c5a7a to your computer and use it in GitHub Desktop.
Save kozak127/992d6d425a05499426bfb8b4858c5a7a to your computer and use it in GitHub Desktop.
Wake On Lan Linux
WOL_DISABLE=N in /etc/default/tlp
NETDOWN=no in /etc/default/halt
sudo systemctl enable wol@eth3
[Unit]
Description=Wake-on-LAN for %i
Requires=network.target
After=network.target
[Service]
ExecStart=/sbin/ethtool -s %i wol g
Type=oneshot
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment