diff options
Diffstat (limited to 'sysconfig')
-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 |