-
Notifications
You must be signed in to change notification settings - Fork 78
Description
I've this same problem and i've developed a solution to enable WOL. I'd wrote a script that execute when the OS wake up.
It basicly it installs ethtool by docker and enable wol.
On first place you must create a new doc:
sudo nano /etc/systemd/system/wol.service
In it you place the following lines:
[Unit]
Description=Enable Wake-on-LAN name_of_your_lan by scripting
[Service]
Type=oneshot
ExecPreStart=/bin/bash sudo docker pull sdnvortex/ethtool:latest
ExecStart=/sbin/ethtool -s name_of_your_lan (in my case eth0) wol g
[Install]
WantedBy=multi-user.target
Then you save the file and enable the service:
sudo systemctl enable wol.service
With those bash lines and the service WOL will always be enabled, it doesn't matter if you reset the PC.
PD: To kwow name_of_your_lan type on bash:
ip a
It might be eth0, enp2s0, wlan0, etc.