aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-11-11 20:25:21 +0000
committerBill Nottingham <notting@redhat.com>2003-11-11 20:25:21 +0000
commit039c85b8611fce73a114b89f2584c9e78ad29541 (patch)
treee66d3e1bb3ae1829661c51e474d2baae7569e0e6
parentfaa4a059e8e4802596a32151641ee805b7e84880 (diff)
downloadinitscripts-039c85b8611fce73a114b89f2584c9e78ad29541.tar
initscripts-039c85b8611fce73a114b89f2584c9e78ad29541.tar.gz
initscripts-039c85b8611fce73a114b89f2584c9e78ad29541.tar.bz2
initscripts-039c85b8611fce73a114b89f2584c9e78ad29541.tar.xz
initscripts-039c85b8611fce73a114b89f2584c9e78ad29541.zip
add ethtool opts here
-rwxr-xr-xsysconfig/network-scripts/ifup8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 447105ae..2f9e0964 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -169,6 +169,10 @@ if [ -n "${DYNCONFIG}" ]; then
fi
echo -n $"Determining IP information for ${DEVICE}..."
+ if [ -n "$ETHTOOL_OPTS" ] ; then
+ /sbin/ethtool -s ${REALDEVICE} $ETHTOOL_OPTS
+ fi
+
# DHCP clients need DNS to be available, and we don't know
# what DNS server they're using until they are done.
FWHACK=
@@ -209,6 +213,10 @@ else
echo $"Failed to bring up ${DEVICE}."
exit 1
fi
+
+ if [ -n "$ETHTOOL_OPTS" ] ; then
+ /sbin/ethtool -s ${REALDEVICE} $ETHTOOL_OPTS
+ fi
if ! arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${IPADDR} ; then
echo $"Error, some other host already uses address ${IPADDR}."