summaryrefslogtreecommitdiffstats
path: root/core/modules/etherwake/templates
diff options
context:
space:
mode:
authorSimon Rettberg2020-08-27 12:21:01 +0200
committerSimon Rettberg2020-08-27 12:21:01 +0200
commit515ccbd1d973352956848ae9e8625c1cd214ca3f (patch)
tree470a61b32d661c7e2f4a84a7a8f492e9698ad4c2 /core/modules/etherwake/templates
parent[busybox] Fix fucked up whitespace in patch (diff)
downloadmltk-515ccbd1d973352956848ae9e8625c1cd214ca3f.tar.gz
mltk-515ccbd1d973352956848ae9e8625c1cd214ca3f.tar.xz
mltk-515ccbd1d973352956848ae9e8625c1cd214ca3f.zip
[etherwake] Fix etherwake symlink, disable pause frames
Diffstat (limited to 'core/modules/etherwake/templates')
-rw-r--r--core/modules/etherwake/templates/99-enable-wol-disable-pause.rules (renamed from core/modules/etherwake/templates/99-enable-wol.rules)3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/modules/etherwake/templates/99-enable-wol.rules b/core/modules/etherwake/templates/99-enable-wol-disable-pause.rules
index 0a9d2fc3..719d872b 100644
--- a/core/modules/etherwake/templates/99-enable-wol.rules
+++ b/core/modules/etherwake/templates/99-enable-wol-disable-pause.rules
@@ -1,2 +1,5 @@
+# Enable WOL on boot NIC
ACTION=="add", SUBSYSTEM=="net", NAME=="eth0", RUN+="%ETHTOOL% -s $name wol g"
ACTION=="add", SUBSYSTEM=="net", NAME=="boot0", RUN+="%ETHTOOL% -s $name wol g"
+# Disaable pause frames on any adapter found
+ACTION=="add", SUBSYSTEM=="net", RUN+="%ETHTOOL% -A $name autoneg off rx off tx off"