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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user