From 76dcc96886a61c2ac7297e214d0467e341203724 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 12 Jan 2005 20:20:27 +0000 Subject: set ETHTOOL_OPTS on addressless devices (#144682, ) --- sysconfig/network-scripts/ifup | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sysconfig/network-scripts/ifup') 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 -- cgit v1.2.1