# /etc/systemd/system/wol.service # Systemd service to enable Wake-on-LAN at boot # Ensures the NIC accepts magic packets for remote wake [Unit] Description=Enable Wake-on-LAN After=network.target [Service] Type=oneshot # Set WoL to magic packet mode on the specified interface # Change 'eno1' to match your network interface name ExecStart=/usr/sbin/ethtool -s eno1 wol g RemainAfterExit=yes [Install] WantedBy=multi-user.target