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:
parent
abc3b13fd7
commit
2e81234df1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue