diff options
author | Bill Nottingham <notting@redhat.com> | 2005-01-12 20:20:27 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-01-12 20:20:27 +0000 |
commit | 76dcc96886a61c2ac7297e214d0467e341203724 (patch) | |
tree | 33be75eb86bdcd27f30c38572dd10ec7704222ee | |
parent | 92f52745da8d05b705b8f611a1b2ec18083ac4b2 (diff) | |
download | initscripts-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-x | sysconfig/network-scripts/ifup | 3 |
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 |