diff options
| author | Bill Nottingham <notting@redhat.com> | 2005-01-12 20:23:37 +0000 |
|---|---|---|
| committer | Bill Nottingham <notting@redhat.com> | 2005-01-12 20:23:37 +0000 |
| commit | daea8d6d1804d1170ec2413fe81762d236b8f58f (patch) | |
| tree | 6ed64c74b58ef2ed02a1eaebcffdec6398468bcf /sysconfig | |
| parent | 606dac300fced32074bc994e62cea093c9b6e40a (diff) | |
set ETHTOOL_OPTS on addressless devices (#144682, <mpoole@redhat.com>)
Diffstat (limited to 'sysconfig')
| -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 54428d4d..90d9ed75 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -202,6 +202,9 @@ else if [ -z "${IPADDR}" ]; then # enable device without IP, useful for e.g. PPPoE ip link set ${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 |
