summarylogtreecommitdiffstats
path: root/wol@.service
diff options
context:
space:
mode:
authorphiresky2015-09-03 17:43:04 +0200
committerphiresky2015-09-03 17:43:04 +0200
commit987dc8c0459c68316ab7cc88193de5c56d41c591 (patch)
tree7d6702c807bc6860d7e3593f041c9e57ad0cba3a /wol@.service
downloadaur-987dc8c0459c68316ab7cc88193de5c56d41c591.tar.gz
initial commit
Diffstat (limited to 'wol@.service')
-rw-r--r--wol@.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/wol@.service b/wol@.service
new file mode 100644
index 000000000000..875180e35004
--- /dev/null
+++ b/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 g
+Type=oneshot
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file