summaryrefslogtreecommitdiff
path: root/etc/systemd
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-04-14 06:38:49 +0200
committerBotond Hende <nettingman@gmail.com>2024-04-14 06:38:49 +0200
commit0221492f62bcc1b766c2a4d5dbe26f6ff2ed8bc2 (patch)
treef91b7ada571a4dab7ae99c8f3ee252616baff2db /etc/systemd
squashed init
Diffstat (limited to 'etc/systemd')
-rw-r--r--etc/systemd/system/wol@.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/systemd/system/wol@.service b/etc/systemd/system/wol@.service
new file mode 100644
index 0000000..b60d539
--- /dev/null
+++ b/etc/systemd/system/wol@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Wake-on-LAN for %i
+Requires=network.target
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/ethtool -s %i wol gp
+Type=oneshot
+
+[Install]
+WantedBy=multi-user.target