diff options
author | Bill Nottingham <notting@redhat.com> | 2003-08-01 02:13:31 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-08-01 02:13:31 +0000 |
commit | 9d87ea5b47b46f556827aff9ce62d05f51950a7b (patch) | |
tree | 475165dbdc5393706e7a2a7f8319587c411827ff /sysconfig/network-scripts/ifup | |
parent | bd9ee4a41c26046f8f27fee55ea2d5df157bde69 (diff) | |
download | initscripts-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/network-scripts/ifup')
-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 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 |