Renamed `wol_interface` to `wol_bridge`, updated comments, and refactored task using `bridge link show` and `ethtool`. Added udev rules for persistence and set `Restart=always` for the service.
12 lines
237 B
Django/Jinja
12 lines
237 B
Django/Jinja
[Unit]
|
|
Description=Enable Wake-on-LAN on {{ wol_final_interface }}
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/sbin/ethtool -s {{ wol_final_interface }} wol {{ wol_mode }}
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|