diff options
author | Bill Nottingham <notting@redhat.com> | 2002-09-04 17:03:48 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-09-04 17:03:48 +0000 |
commit | affc7277adc15106054c91d82b0e77446b1c2d40 (patch) | |
tree | b9138ffabc17b1aada7052aab51c8be094859892 /sysconfig/network-scripts | |
parent | 99c236f62b0eb54619d812bdfd5092a3fc724b4a (diff) | |
download | initscripts-affc7277adc15106054c91d82b0e77446b1c2d40.tar initscripts-affc7277adc15106054c91d82b0e77446b1c2d40.tar.gz initscripts-affc7277adc15106054c91d82b0e77446b1c2d40.tar.bz2 initscripts-affc7277adc15106054c91d82b0e77446b1c2d40.tar.xz initscripts-affc7277adc15106054c91d82b0e77446b1c2d40.zip |
fix syntax error
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 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 |