From affc7277adc15106054c91d82b0e77446b1c2d40 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 4 Sep 2002 17:03:48 +0000 Subject: fix syntax error --- sysconfig/network-scripts/ifup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/ifup') diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 48f15201..eb532d43 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -200,7 +200,7 @@ if [ -n "${DYNCONFIG}" ]; then NUMDEFROUTES=`ip -o route | \ grep "^default" | \ awk '{ nlines++ } END { print nlines }'` - if [ "$NUMDEFROUTES" -gt 1 ]; then + if [ -n "$NUMDEFROUTES" -a "$NUMDEFROUTES" -gt 1 ]; then # remove the default route for the new device (old route wins) ip route del default dev ${DEVICE} fi -- cgit v1.2.1