aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-08-01 02:13:31 +0000
committerBill Nottingham <notting@redhat.com>2003-08-01 02:13:31 +0000
commit9d87ea5b47b46f556827aff9ce62d05f51950a7b (patch)
tree475165dbdc5393706e7a2a7f8319587c411827ff /sysconfig
parentbd9ee4a41c26046f8f27fee55ea2d5df157bde69 (diff)
downloadinitscripts-9d87ea5b47b46f556827aff9ce62d05f51950a7b.tar
initscripts-9d87ea5b47b46f556827aff9ce62d05f51950a7b.tar.gz
initscripts-9d87ea5b47b46f556827aff9ce62d05f51950a7b.tar.bz2
initscripts-9d87ea5b47b46f556827aff9ce62d05f51950a7b.tar.xz
initscripts-9d87ea5b47b46f556827aff9ce62d05f51950a7b.zip
fix short-circuit (#101445)
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 d73288f0..2a2e955c 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -265,7 +265,7 @@ if [ -n "${DYNCONFIG}" ]; then
# DHCP likes to create duplicate routes. Fix that up.
NUMDEFROUTES=`ip -o route | \
awk '/^default/ { nlines++ } END { print nlines }'`
- if [ -n "$NUMDEFROUTES" -a "$NUMDEFROUTES" -gt 1 ]; then
+ if [ -n "$NUMDEFROUTES" ] && [ "$NUMDEFROUTES" -gt 1 ]; then
# remove the default route for the new device (old route wins)
ip route del default dev ${DEVICE}
fi