summaryrefslogtreecommitdiffstats
path: root/core/modules/etherwake
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/etherwake')
-rw-r--r--core/modules/etherwake/templates/99-enable-wol.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/modules/etherwake/templates/99-enable-wol.rules b/core/modules/etherwake/templates/99-enable-wol.rules
new file mode 100644
index 00000000..0a9d2fc3
--- /dev/null
+++ b/core/modules/etherwake/templates/99-enable-wol.rules
@@ -0,0 +1,2 @@
+ACTION=="add", SUBSYSTEM=="net", NAME=="eth0", RUN+="%ETHTOOL% -s $name wol g"
+ACTION=="add", SUBSYSTEM=="net", NAME=="boot0", RUN+="%ETHTOOL% -s $name wol g"