diff options
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" |