aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-12-06 15:05:38 -0500
committerBill Nottingham <notting@redhat.com>2011-04-12 11:08:13 -0400
commit88fcc980d1ae6157c43a45dae0f11faf29e1d6ee (patch)
treeb4db3d86cdd1a0beca87cfa71b8f792dc4e58af6 /sysconfig
parent6958299da102c284d651ec9339e4cf07231abb51 (diff)
downloadinitscripts-88fcc980d1ae6157c43a45dae0f11faf29e1d6ee.tar
initscripts-88fcc980d1ae6157c43a45dae0f11faf29e1d6ee.tar.gz
initscripts-88fcc980d1ae6157c43a45dae0f11faf29e1d6ee.tar.bz2
initscripts-88fcc980d1ae6157c43a45dae0f11faf29e1d6ee.tar.xz
initscripts-88fcc980d1ae6157c43a45dae0f11faf29e1d6ee.zip
Fix routing regression (#660363)
Diffstat (limited to 'sysconfig')
-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 03882004..a93fbbbb 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -282,7 +282,7 @@ else
# Set a default route.
if [ "${DEFROUTE}" != "no" ] && [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${REALDEVICE}" ]; then
# set up default gateway. replace if one already exists
- if [ -n "${GATEWAY}" ] && [ "$(ipcalc --network ${GATEWAY} ${NETMASK} 2>/dev/null)" = "NETWORK=${NETWORK}" ]; then
+ if [ -n "${GATEWAY}" ] && [ "$(ipcalc --network ${GATEWAY} ${netmask[0]} 2>/dev/null)" = "NETWORK=${NETWORK}" ]; then
ip route replace default ${METRIC:+metric $METRIC} \
via ${GATEWAY} ${WINDOW:+window $WINDOW} ${SRC} \
${GATEWAYDEV:+dev $GATEWAYDEV}