diff options
author | Bill Nottingham <notting@redhat.com> | 2005-04-15 18:28:01 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-04-15 18:28:01 +0000 |
commit | d0ae7acda6ac80e1c6502f575a222d822f34f76b (patch) | |
tree | 42886ad11325fc1f6d8d293870fda4c8b9526341 | |
parent | f0e2bed2b5bfefc6764d4a42bc4451922f7217e2 (diff) | |
download | initscripts-d0ae7acda6ac80e1c6502f575a222d822f34f76b.tar initscripts-d0ae7acda6ac80e1c6502f575a222d822f34f76b.tar.gz initscripts-d0ae7acda6ac80e1c6502f575a222d822f34f76b.tar.bz2 initscripts-d0ae7acda6ac80e1c6502f575a222d822f34f76b.tar.xz initscripts-d0ae7acda6ac80e1c6502f575a222d822f34f76b.zip |
remove duplicate route check... this should get fixed in
dhclient-script (or wherever) if it still happens
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 8 |
1 files changed, 0 insertions, 8 deletions
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 |