aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-10-21 17:18:23 -0400
committerBill Nottingham <notting@redhat.com>2009-10-21 17:18:23 -0400
commita23c3828e092315e71ba4d5e6befc060a4f2c07a (patch)
tree5e2d3e0dadfce5160a445647cd70a54f3df9ac2d
parentdfdb699ff30d0a5dc799d79de70150823a6942ea (diff)
downloadinitscripts-a23c3828e092315e71ba4d5e6befc060a4f2c07a.tar
initscripts-a23c3828e092315e71ba4d5e6befc060a4f2c07a.tar.gz
initscripts-a23c3828e092315e71ba4d5e6befc060a4f2c07a.tar.bz2
initscripts-a23c3828e092315e71ba4d5e6befc060a4f2c07a.tar.xz
initscripts-a23c3828e092315e71ba4d5e6befc060a4f2c07a.zip
Honor DEFROUTE=yes|no for 'all' connection types. (#528822)
-rwxr-xr-xsysconfig/network-scripts/ifup-eth2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 80bc7388..ba7dc8fc 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -283,7 +283,7 @@ else
fi
# Set a default route.
- if [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${REALDEVICE}" ]; then
+ if [ "${DEFROUTE}" != "no" ] && [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${REALDEVICE}" ]; then
# set up default gateway. replace if one already exists
if [ -n "${GATEWAY}" -a "$(ipcalc --network ${GATEWAY} ${NETMASK} 2>/dev/null)" = "NETWORK=${NETWORK}" ]; then
ip route replace default ${METRIC:+metric $METRIC} \