aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-04-16 23:47:27 +0000
committerHarald Hoyer <harald@redhat.com>2009-05-04 16:05:06 +0200
commit9e0bfd1047847acc726c63a4026e8710e85f7c71 (patch)
treefa83d4afc6b94e389964133b769ff07a43e89291
parentefd768e3941b54c8e3332dfd96fefed53a4be20e (diff)
downloadinitscripts-9e0bfd1047847acc726c63a4026e8710e85f7c71.tar
initscripts-9e0bfd1047847acc726c63a4026e8710e85f7c71.tar.gz
initscripts-9e0bfd1047847acc726c63a4026e8710e85f7c71.tar.bz2
initscripts-9e0bfd1047847acc726c63a4026e8710e85f7c71.tar.xz
initscripts-9e0bfd1047847acc726c63a4026e8710e85f7c71.zip
support ETHTOOL_OPTS on bridge devices (#493255, <bbaetz@acm.org>)
-rwxr-xr-xsysconfig/network-scripts/ifup-eth3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 1bdd83ce..85dad42d 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -154,6 +154,9 @@ if [ -n "${BRIDGE}" -a -x /usr/sbin/brctl ]; then
fi
/sbin/ip addr flush dev ${DEVICE} 2>/dev/null
/sbin/ip link set dev ${DEVICE} up
+ if [ -n "$ETHTOOL_OPTS" ] ; then
+ /sbin/ethtool -s ${REALDEVICE} $ETHTOOL_OPTS
+ fi
[ -n "${LINKDELAY}" ] && /bin/sleep ${LINKDELAY}
/usr/sbin/brctl addif ${BRIDGE} ${DEVICE}
# Upon adding a device to a bridge,