aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-09-04 17:03:48 +0000
committerBill Nottingham <notting@redhat.com>2002-09-04 17:03:48 +0000
commitaffc7277adc15106054c91d82b0e77446b1c2d40 (patch)
treeb9138ffabc17b1aada7052aab51c8be094859892 /sysconfig
parent99c236f62b0eb54619d812bdfd5092a3fc724b4a (diff)
downloadinitscripts-affc7277adc15106054c91d82b0e77446b1c2d40.tar
initscripts-affc7277adc15106054c91d82b0e77446b1c2d40.tar.gz
initscripts-affc7277adc15106054c91d82b0e77446b1c2d40.tar.bz2
initscripts-affc7277adc15106054c91d82b0e77446b1c2d40.tar.xz
initscripts-affc7277adc15106054c91d82b0e77446b1c2d40.zip
fix syntax error
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 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