You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
344 B
Plaintext
15 lines
344 B
Plaintext
2 years ago
|
#!/bin/sh
|
||
|
|
||
|
ETHTOOL=/sbin/ethtool
|
||
|
|
||
|
test -x $ETHTOOL || exit 0
|
||
|
|
||
|
[ "$IFACE" != "lo" ] || exit 0
|
||
|
|
||
|
# Gather together the mixed bag of settings applied with -s/--change
|
||
|
SETTINGS="\
|
||
|
${IF_ETHERNET_PORT:+ port $IF_ETHERNET_PORT}\
|
||
|
${IF_DRIVER_MESSAGE_LEVEL:+ msglvl $IF_DRIVER_MESSAGE_LEVEL}\
|
||
|
"
|
||
|
[ -z "$SETTINGS" ] || $ETHTOOL --change "$IFACE" $SETTINGS
|