refactor ♻️: Refactored Wake-on-LAN task for specific bridge interface

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.
This commit is contained in:
2025-12-23 20:42:03 +01:00
parent ebc947ce9d
commit 963b0dff6a
3 changed files with 72 additions and 119 deletions

View File

@@ -1,10 +1,11 @@
[Unit]
Description=Enable Wake-on-LAN on {{ wol_interface_final }}
Description=Enable Wake-on-LAN on {{ wol_final_interface }}
After=network.target
[Service]
Type=oneshot
ExecStart=/sbin/ethtool -s {{ wol_interface_final }} wol {{ wol_mode }}
ExecStart=/sbin/ethtool -s {{ wol_final_interface }} wol {{ wol_mode }}
Restart=always
[Install]
WantedBy=multi-user.target