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>2010-12-06 15:06:00 -0500
commit03927a3bd0a274baacfd79e5bd0747ed877f9988 (patch)
treeb33cb07cbade557055d8eae5cc4e877dce353bdf /sysconfig
parent99cc28d69058513b17208c13962dead0fa099cc3 (diff)
downloadinitscripts-03927a3bd0a274baacfd79e5bd0747ed877f9988.tar
initscripts-03927a3bd0a274baacfd79e5bd0747ed877f9988.tar.gz
initscripts-03927a3bd0a274baacfd79e5bd0747ed877f9988.tar.bz2
initscripts-03927a3bd0a274baacfd79e5bd0747ed877f9988.tar.xz
initscripts-03927a3bd0a274baacfd79e5bd0747ed877f9988.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 dd9fb5ea..326eba1a 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -275,7 +275,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}