Ubuntu wake-on-lan

Nastavení probouzení počítače po síti

  • Úprava scriptu /etc/init.d/halt
# Make it possible to not shut down network interfaces,
# needed to use wake-on-lan
netdown="-i"
if [ "$NETDOWN" = "no" ]; then
	netdown=""
fi

log_action_msg "Will now halt"
ip link set eth0 up
ethtool -s eth0 wol g
halt -d -f $netdown $poweroff $hddown