aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsysconfig/network-scripts/ifup2
1 files changed, 1 insertions, 1 deletions
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)