Issues with WakeOnLan.

Like, for some reason, wake on lan is not enabled out of the box (which is strange, considering I need to turn on the "DIY gaming console" from the comfort of my couch, and without WoL that proves a challenge), but i've enabled it, with the help of ChatGPT (using
sudo ethtool -s eth0 wol g
), so, all is perfect...

EXCEPT!
I noticed that after couple of days the WoL was once again disabled...

Talking to ChatGPT he suggested me to:
Make Wake-on-LAN Persistent
Run the following:


sudo mkdir -p /etc/systemd/system/network-online.target.wants/
Then create a systemd service:


sudo nano /etc/systemd/system/wol.service
Paste this into the file:


[Unit]
Description=Enable Wake-on-LAN on enp6s0
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/sbin/ethtool -s enp6s0 wol g

[Install]
WantedBy=multi-user.target
Save and exit (CTRL+O, Enter, then CTRL+X).

Then run:


sudo systemctl enable wol.service


Which I did and it made WoL work again, but I wonder for how long.
I wonder if an update would break this or this could break an update.
I think there was an update from my first attempt to the second, maybe that update undid my first attempt, but my second attempt is way more aggressive from what I can tell.
So, also, is there a "correct" way to enable WoL on Bazzite?
Was this page helpful?