add service

This commit is contained in:
Carneiro 2024-09-09 20:34:57 -03:00
parent 37c08efe3b
commit dafa46900a
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
[Unit]
Description=Enable Wake On Lan on %i
Requires=network.target
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/sbin/ethtool -s %i wol g
[Install]
WantedBy=multi-user.target