ethtool: Call 'env' instead of 'set' to get environment

'set' will output environment variables with ' around them which will
  confuse ethtool.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
Maximilian Wilhelm 2020-09-23 01:24:56 +02:00
parent abc3b13fd7
commit 2e81234df1

View file

@ -3,7 +3,7 @@ set -e
# gather params for a given prefix, based on executor-scripts/linux/tunnel. # gather params for a given prefix, based on executor-scripts/linux/tunnel.
gather_params() { gather_params() {
set | sed -E " env | sed -E "
s/^IF_${1}_([A-Z0-9_]+)=(.+)/\1\n\2/ s/^IF_${1}_([A-Z0-9_]+)=(.+)/\1\n\2/
ta ta
d d