diff options
author | Preston Brown <pbrown@redhat.com> | 2002-06-27 18:35:47 +0000 |
---|---|---|
committer | Preston Brown <pbrown@redhat.com> | 2002-06-27 18:35:47 +0000 |
commit | 944d2e72c714606f2ea52a99f0d49ab98a8bbd83 (patch) | |
tree | 11ff42772d4655c0ca718108ab97e86f2cfa1da4 | |
parent | 9ace2daa2b2e8985e49793bf7eef56f86ab4eaad (diff) | |
download | initscripts-944d2e72c714606f2ea52a99f0d49ab98a8bbd83.tar initscripts-944d2e72c714606f2ea52a99f0d49ab98a8bbd83.tar.gz initscripts-944d2e72c714606f2ea52a99f0d49ab98a8bbd83.tar.bz2 initscripts-944d2e72c714606f2ea52a99f0d49ab98a8bbd83.tar.xz initscripts-944d2e72c714606f2ea52a99f0d49ab98a8bbd83.zip |
make sure we don't match default as anything but a route (instead of, say, someone's device name
-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) |