diff options
author | Bill Nottingham <notting@redhat.com> | 2005-01-12 20:22:44 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-01-12 20:22:44 +0000 |
commit | 62a374aeef68d1ae60c9f6ff48a5eb308a03ca4c (patch) | |
tree | 681b09dcb5454a3ffa2f198732f3bf26ced74e3f | |
parent | b106d930e8824768652a609649e11bcdee688e4a (diff) | |
download | initscripts-62a374aeef68d1ae60c9f6ff48a5eb308a03ca4c.tar initscripts-62a374aeef68d1ae60c9f6ff48a5eb308a03ca4c.tar.gz initscripts-62a374aeef68d1ae60c9f6ff48a5eb308a03ca4c.tar.bz2 initscripts-62a374aeef68d1ae60c9f6ff48a5eb308a03ca4c.tar.xz initscripts-62a374aeef68d1ae60c9f6ff48a5eb308a03ca4c.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 ce83731d..885ecca3 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -291,6 +291,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 |