aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorPreston Brown <pbrown@redhat.com>2002-06-27 18:35:47 +0000
committerPreston Brown <pbrown@redhat.com>2002-06-27 18:35:47 +0000
commit944d2e72c714606f2ea52a99f0d49ab98a8bbd83 (patch)
tree11ff42772d4655c0ca718108ab97e86f2cfa1da4 /sysconfig
parent9ace2daa2b2e8985e49793bf7eef56f86ab4eaad (diff)
downloadinitscripts-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
Diffstat (limited to 'sysconfig')
-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)