Skip to content

Instantly share code, notes, and snippets.

@RobinDavid
Created November 29, 2015 20:04
Show Gist options
  • Save RobinDavid/705b50cde787f202b02c to your computer and use it in GitHub Desktop.
Save RobinDavid/705b50cde787f202b02c to your computer and use it in GitHub Desktop.
Enabling WoL Linux
#!/bin/bash
sed -i 's,^\(NETDOWN=\).*,\1'no',' /etc/init.d/halt
aptitude install ethtool -y
echo 'pre-down /usr/sbin/ethool -s eth0 wol g' >> /etc/network/interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment