From 944d2e72c714606f2ea52a99f0d49ab98a8bbd83 Mon Sep 17 00:00:00 2001 From: Preston Brown Date: Thu, 27 Jun 2002 18:35:47 +0000 Subject: make sure we don't match default as anything but a route (instead of, say, someone's device name --- sysconfig/network-scripts/ifup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index ab7f39ed..da8c85a5 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -201,7 +201,7 @@ if [ -n "${DYNCONFIG}" ]; then # DHCP likes to create duplicate routes. Fix that up. NUMDEFROUTES=`ip -o route | \ - grep default | \ + grep "^default" | \ awk '{ nlines++ } END { print nlines }'` if [ "$NUMDEFROUTES" -gt 1 ]; then # remove the default route for the new device (old route wins) -- cgit v1.2.1