Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| linux:linux-tutorials:enable-wol-persistent [2024/02/07 15:53] – Zyzonix | linux:linux-tutorials:enable-wol-persistent [2024/12/25 14:09] (current) – [Enable automatically at boot] Zyzonix | ||
|---|---|---|---|
| Line 86: | Line 86: | ||
| ==== Enable automatically at boot ==== | ==== Enable automatically at boot ==== | ||
| + | |||
| + | If not enabled in BIOS WoL has to be enabled before shutting down. This can be done by a system service (systemd-based distro required): | ||
| + | |||
| + | Firstly create the service file: | ||
| + | <code bash> | ||
| + | And add this content: | ||
| + | <code bash> | ||
| + | [Unit] | ||
| + | Description=Configure Wake-up on LAN | ||
| + | After=network-online.target | ||
| + | |||
| + | [Service] | ||
| + | Type=oneshot | ||
| + | ExecStart=/ | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=basic.target | ||
| + | </ | ||
| + | Remind to change the ''< | ||
| + | |||
| + | Then save the file and enable the service with: | ||
| + | <code bash> | ||
| // Sourced from [[https:// | // Sourced from [[https:// | ||