ethtool: add pre-up settings to the executor
This commit is contained in:
parent
63ec8d4b3b
commit
b0480a3343
1 changed files with 11 additions and 0 deletions
|
@ -1,2 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
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
|
||||||
|
|
Loading…
Reference in a new issue