Enables Wake-on-LAN by setting `wol_interface` to an empty string and enables MAC address reporting.
11 lines
222 B
Django/Jinja
11 lines
222 B
Django/Jinja
[Unit]
|
|
Description=Enable Wake-on-LAN on {{ wol_interface_final }}
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/sbin/ethtool -s {{ wol_interface_final }} wol {{ wol_mode }}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|