diff options
author | Simon Rettberg | 2024-03-01 15:23:02 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-03-01 15:23:02 +0100 |
commit | 1a325320cd1918ef0596e7cda5af0613633ac968 (patch) | |
tree | a1f36405af9c512f92e14b7c5a3cf72cac8192a7 /core/modules/etherwake/data/opt/openslx/scripts | |
parent | [vmware-version-check/nvidia-libs@] Silence non-critical errors in addon-requ... (diff) | |
download | mltk-1a325320cd1918ef0596e7cda5af0613633ac968.tar.gz mltk-1a325320cd1918ef0596e7cda5af0613633ac968.tar.xz mltk-1a325320cd1918ef0596e7cda5af0613633ac968.zip |
[etherwake] udev: Mask exit code 76 from ethtool
Diffstat (limited to 'core/modules/etherwake/data/opt/openslx/scripts')
-rwxr-xr-x | core/modules/etherwake/data/opt/openslx/scripts/udev-disable_pause_frames | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/modules/etherwake/data/opt/openslx/scripts/udev-disable_pause_frames b/core/modules/etherwake/data/opt/openslx/scripts/udev-disable_pause_frames new file mode 100755 index 00000000..f5d3ba3a --- /dev/null +++ b/core/modules/etherwake/data/opt/openslx/scripts/udev-disable_pause_frames @@ -0,0 +1,7 @@ +#!/bin/ash + +# Hide exit code to avoid udev spam +ethtool -A "$1" autoneg off rx off tx off +ret=$? +[ "$ret" = 76 ] && exit 0 +exit "$ret" |