aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-01-12 20:20:27 +0000
committerBill Nottingham <notting@redhat.com>2005-01-12 20:20:27 +0000
commit76dcc96886a61c2ac7297e214d0467e341203724 (patch)
tree33be75eb86bdcd27f30c38572dd10ec7704222ee
parent92f52745da8d05b705b8f611a1b2ec18083ac4b2 (diff)
downloadinitscripts-76dcc96886a61c2ac7297e214d0467e341203724.tar
initscripts-76dcc96886a61c2ac7297e214d0467e341203724.tar.gz
initscripts-76dcc96886a61c2ac7297e214d0467e341203724.tar.bz2
initscripts-76dcc96886a61c2ac7297e214d0467e341203724.tar.xz
initscripts-76dcc96886a61c2ac7297e214d0467e341203724.zip
set ETHTOOL_OPTS on addressless devices (#144682, <mpoole@redhat.com>)
-rwxr-xr-xsysconfig/network-scripts/ifup3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index c6b29208..04c2e620 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -336,6 +336,9 @@ else
if [ -z "${IPADDR}" ]; then
# enable device without IP, useful for e.g. PPPoE
ip link set dev ${REALDEVICE} up
+ if [ -n "$ETHTOOL_OPTS" ] ; then
+ /sbin/ethtool -s ${REALDEVICE} $ETHTOOL_OPTS
+ fi
# Bonding initialization part II
if [ "${TYPE}" = "Bonding" ] || ethtool -i $DEVICE 2>/dev/null| grep -q "driver: bonding" ; then
for device in `fgrep -l "MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do