diff options
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 2 |
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) |