diff options
author | Bill Nottingham <notting@redhat.com> | 2003-08-01 02:14:48 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-08-01 02:14:48 +0000 |
commit | 48bddec60b5e41718dadc4257658bcb566ec8600 (patch) | |
tree | e1d98c4d07b11905ad81e9330932cf21e8868b0d | |
parent | 70a084717c6048ccc75b8528b81f9d88f5716847 (diff) | |
download | initscripts-48bddec60b5e41718dadc4257658bcb566ec8600.tar initscripts-48bddec60b5e41718dadc4257658bcb566ec8600.tar.gz initscripts-48bddec60b5e41718dadc4257658bcb566ec8600.tar.bz2 initscripts-48bddec60b5e41718dadc4257658bcb566ec8600.tar.xz initscripts-48bddec60b5e41718dadc4257658bcb566ec8600.zip |
fix short-circuit (#101445)
-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 944edaaf..67c48830 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -265,7 +265,7 @@ if [ -n "${DYNCONFIG}" ]; then NUMDEFROUTES=`ip -o route | \ grep "^default" | \ awk '{ 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 |