From d0ae7acda6ac80e1c6502f575a222d822f34f76b Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 15 Apr 2005 18:28:01 +0000 Subject: remove duplicate route check... this should get fixed in dhclient-script (or wherever) if it still happens --- sysconfig/network-scripts/ifup-eth | 8 -------- 1 file changed, 8 deletions(-) (limited to 'sysconfig/network-scripts') diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index ea89e64d..432f0d2d 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -177,14 +177,6 @@ if [ -n "${DYNCONFIG}" -a -x /sbin/dhclient ]; then echo $" failed." exit 1 fi - - # DHCP likes to create duplicate routes. Fix that up. - NUMDEFROUTES=`ip -o route | \ - awk '/^default/ { nlines++ } END { print nlines }'` - if [ -n "$NUMDEFROUTES" ] && [ "$NUMDEFROUTES" -gt 1 ]; then - # remove the default route for the new device (old route wins) - ip route del default dev ${DEVICE} - fi # end dynamic device configuration else if [ -z "${IPADDR}" ]; then -- cgit v1.2.1