diff options
author | Bill Nottingham <notting@redhat.com> | 2003-08-01 02:14:22 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-08-01 02:14:22 +0000 |
commit | fec20ab00e33e3f5cae0c219ef6ae8ab98fa7557 (patch) | |
tree | eafc8ca414319664713e5628208c94accc136da6 | |
parent | d509a34f5012f3b9cfb3476ef5868172cf9a9687 (diff) | |
download | initscripts-fec20ab00e33e3f5cae0c219ef6ae8ab98fa7557.tar initscripts-fec20ab00e33e3f5cae0c219ef6ae8ab98fa7557.tar.gz initscripts-fec20ab00e33e3f5cae0c219ef6ae8ab98fa7557.tar.bz2 initscripts-fec20ab00e33e3f5cae0c219ef6ae8ab98fa7557.tar.xz initscripts-fec20ab00e33e3f5cae0c219ef6ae8ab98fa7557.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 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 |