Created
November 29, 2015 20:04
-
-
Save RobinDavid/705b50cde787f202b02c to your computer and use it in GitHub Desktop.
Enabling WoL Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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