diff options
author | Bill Nottingham <notting@redhat.com> | 2009-10-21 17:18:23 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-10-21 17:18:23 -0400 |
commit | a23c3828e092315e71ba4d5e6befc060a4f2c07a (patch) | |
tree | 5e2d3e0dadfce5160a445647cd70a54f3df9ac2d /sysconfig/network-scripts | |
parent | dfdb699ff30d0a5dc799d79de70150823a6942ea (diff) | |
download | initscripts-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)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 2 |
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} \ |