diff options
author | Bill Nottingham <notting@redhat.com> | 2010-12-06 15:05:38 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-12-06 15:06:00 -0500 |
commit | 03927a3bd0a274baacfd79e5bd0747ed877f9988 (patch) | |
tree | b33cb07cbade557055d8eae5cc4e877dce353bdf /sysconfig/network-scripts/ifup-eth | |
parent | 99cc28d69058513b17208c13962dead0fa099cc3 (diff) | |
download | initscripts-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/network-scripts/ifup-eth')
-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 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} |