diff options
author | Simon Rettberg | 2020-08-27 12:21:01 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-08-27 12:21:01 +0200 |
commit | 515ccbd1d973352956848ae9e8625c1cd214ca3f (patch) | |
tree | 470a61b32d661c7e2f4a84a7a8f492e9698ad4c2 /core/modules/etherwake | |
parent | [busybox] Fix fucked up whitespace in patch (diff) | |
download | mltk-515ccbd1d973352956848ae9e8625c1cd214ca3f.tar.gz mltk-515ccbd1d973352956848ae9e8625c1cd214ca3f.tar.xz mltk-515ccbd1d973352956848ae9e8625c1cd214ca3f.zip |
[etherwake] Fix etherwake symlink, disable pause frames
Diffstat (limited to 'core/modules/etherwake')
l--------- | core/modules/etherwake/data/opt/openslx/sbin/etherwake (renamed from core/modules/etherwake/opt/openslx/sbin/etherwake) | 0 | ||||
-rw-r--r-- | core/modules/etherwake/module.build | 3 | ||||
-rw-r--r-- | core/modules/etherwake/templates/99-enable-wol-disable-pause.rules (renamed from core/modules/etherwake/templates/99-enable-wol.rules) | 3 |
3 files changed, 5 insertions, 1 deletions
diff --git a/core/modules/etherwake/opt/openslx/sbin/etherwake b/core/modules/etherwake/data/opt/openslx/sbin/etherwake index 25b69dbb..25b69dbb 120000 --- a/core/modules/etherwake/opt/openslx/sbin/etherwake +++ b/core/modules/etherwake/data/opt/openslx/sbin/etherwake diff --git a/core/modules/etherwake/module.build b/core/modules/etherwake/module.build index d9648025..50b24da5 100644 --- a/core/modules/etherwake/module.build +++ b/core/modules/etherwake/module.build @@ -15,7 +15,8 @@ build() { cde "$MODULE_BUILD_DIR" mkdir -p "${MODULE_BUILD_DIR}/etc/udev/rules.d" - sed "s,%ETHTOOL%,$(which ethtool)," "${MODULE_DIR}/templates/99-enable-wol.rules" > "${MODULE_BUILD_DIR}/etc/udev/rules.d/99-enable-wol.rules" \ + sed "s,%ETHTOOL%,$(which ethtool)," "${MODULE_DIR}/templates/99-enable-wol-disable-pause.rules" \ + > "${MODULE_BUILD_DIR}/etc/udev/rules.d/99-enable-wol-disable-pause.rules" \ || perror "Cannot write udev rule to enable WOL" local COPYLIST="list_dpkg_output" 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" |