Fix systemctl WoL unit file to work with NetworkManager

This commit is contained in:
Gauthier Provost 2019-09-02 17:25:13 +08:00
parent 561caff7cc
commit 75eec734d8

View file

@ -94,7 +94,7 @@ Patch for Linux Kernel 4.14.x can be found [here](/files/wol/lk4.14-mvebu-gpio-a
## Enabling WOL ## Enabling WOL
!!! note !!! note
Latest Armbian images, starting version **5.77**, already have the WoL enabled by default for eth0. So you may skip this step. Latest Armbian images, starting version **5.77**, should already have the WoL enabled by default for eth0. Check that file */lib/systemd/system/helios4-wol.service* exist and match the configuration file below.
Enable the PHY to raise an interrupt when magic packet received : Enable the PHY to raise an interrupt when magic packet received :
@ -107,8 +107,8 @@ To make it permanent, create the following file */lib/systemd/system/wol@.servic
``` ```
[Unit] [Unit]
Description=Wake-on-LAN for %i Description=Wake-on-LAN for %i
Requires=network.target After=network-online.target
After=network.target Wants=network-online.target
[Service] [Service]
ExecStart=/sbin/ethtool -s %i wol g ExecStart=/sbin/ethtool -s %i wol g