Clean WoL enable instruction #21
This commit is contained in:
parent
277dbb73b3
commit
9396ee8bad
1 changed files with 5 additions and 5 deletions
10
docs/wol.md
10
docs/wol.md
|
@ -102,26 +102,26 @@ Enable the PHY to raise an interrupt when magic packet received :
|
|||
sudo ethtool -s eth0 wol g
|
||||
```
|
||||
|
||||
To make it permanent, create the following file */lib/systemd/system/wol@.service* and copy the following:
|
||||
To make it permanent, create the following file */lib/systemd/system/helios4-wol.service* and copy the following:
|
||||
|
||||
```
|
||||
[Unit]
|
||||
Description=Wake-on-LAN for %i
|
||||
Description=Enable Wake-on-LAN for Helios4 eth0
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/sbin/ethtool -s %i wol g
|
||||
ExecStart=/sbin/ethtool -s eth0 wol g
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
Then enable the service for **eth0**
|
||||
Then reload systemd manager configuration
|
||||
|
||||
```
|
||||
systemctl enable wol@eth0
|
||||
sudo systemctl daemon-reload
|
||||
```
|
||||
|
||||
## Suspend System
|
||||
|
|
Loading…
Reference in a new issue