From b0480a3343a72be08639491df89c742d8b25b22a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Mon, 21 Sep 2020 08:20:43 -0600 Subject: [PATCH] ethtool: add pre-up settings to the executor --- executor-scripts/linux/ethtool | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/executor-scripts/linux/ethtool b/executor-scripts/linux/ethtool index d37118b..30b4f5c 100755 --- a/executor-scripts/linux/ethtool +++ b/executor-scripts/linux/ethtool @@ -1,2 +1,13 @@ #!/bin/sh set -e + +case "$PHASE" in +pre-up) + settings= + [ -n "$IF_ETHTOOL_ETHERNET_PORT" ] && settings="port $IF_ETHTOOL_ETHERNET_PORT" + [ -n "$IF_ETHTOOL_MSGLVL" ] && settings="msglvl $IF_ETHTOOL_MSGLVL" + [ -z "$settings" ] || ethtool --change "$IFACE" $settings + ;; +up) + ;; +esac