diff options
author | Bill Nottingham <notting@redhat.com> | 2005-01-12 20:21:44 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-01-12 20:21:44 +0000 |
commit | a56459781d2476d603a7f2c614b64ad833d4d4af (patch) | |
tree | 3baa9b9c202344275e0896b499e94d8baa57e909 | |
parent | 3d285ca1265f49b7fe58fc2234b517604f955c94 (diff) | |
download | initscripts-a56459781d2476d603a7f2c614b64ad833d4d4af.tar initscripts-a56459781d2476d603a7f2c614b64ad833d4d4af.tar.gz initscripts-a56459781d2476d603a7f2c614b64ad833d4d4af.tar.bz2 initscripts-a56459781d2476d603a7f2c614b64ad833d4d4af.tar.xz initscripts-a56459781d2476d603a7f2c614b64ad833d4d4af.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 bcc94c8c..2e3f4590 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -323,6 +323,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 |