aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-05-04 05:28:56 +0000
committerBill Nottingham <notting@redhat.com>2004-05-04 05:28:56 +0000
commitf0b1568fe3e5be8c57e719646953f081587344a6 (patch)
treed141af4389a385025a1d09e6d8eab52183b73a94 /sysconfig/network-scripts
parent741bc6475f1be20ebb490048a286edc778c887fd (diff)
downloadinitscripts-f0b1568fe3e5be8c57e719646953f081587344a6.tar
initscripts-f0b1568fe3e5be8c57e719646953f081587344a6.tar.gz
initscripts-f0b1568fe3e5be8c57e719646953f081587344a6.tar.bz2
initscripts-f0b1568fe3e5be8c57e719646953f081587344a6.tar.xz
initscripts-f0b1568fe3e5be8c57e719646953f081587344a6.zip
support ETHTOOL_OPTS on bonding slaves (#119430, <hrunting@texas.net>)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 5880bd25..2f78479b 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -205,6 +205,10 @@ if [ "${SLAVE}" = yes -a "${ISALIAS}" = no -a "${MASTER}" != "" -a \
echo $"Enslaving ${DEVICE} to ${MASTER}"
ifenslave ${RFLAG} "${MASTER}" "${DEVICE}"
+ if [ -n "$ETHTOOL_OPTS" ] ; then
+ /sbin/ethtool -s ${REALDEVICE} $ETHTOOL_OPTS
+ fi
+
exit 0
fi