feat : Add support for Wake-on-LAN

Enables Wake-on-LAN by setting `wol_interface` to an empty string and enables MAC address reporting.
This commit is contained in:
2025-12-14 21:28:45 +01:00
parent 9bef606607
commit efd44fcbc8
4 changed files with 95 additions and 14 deletions

View File

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