From c49ae566f4f7c58a79b32a8fc17005c0f9495402 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 27 Jun 2003 20:15:25 +0000 Subject: support setting device options with ethtool opts --- sysconfig/network-scripts/ifup | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sysconfig/network-scripts/ifup') diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 13232704..4aa0b55f 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -236,6 +236,10 @@ if [ -n "${DYNCONFIG}" ]; then exit 1 fi + if [ -n "$ETHTOOL_OPTS" ] ; then + /sbin/ethtool -s ${REALDEVICE} $ETHTOOL_OPTS + fi + # DHCP clients need DNS to be available, and we don't know # what DNS server they're using until they are done. FWHACK= @@ -286,6 +290,10 @@ else exit 1 fi + if [ -n "$ETHTOOL_OPTS" ] ; then + /sbin/ethtool -s ${REALDEVICE} $ETHTOOL_OPTS + fi + if ! arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${IPADDR} ; then echo $"Error, some other host already uses address ${IPADDR}." exit 1 -- cgit v1.2.1