diff options
author | Bill Nottingham <notting@redhat.com> | 2010-12-06 15:05:38 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2011-04-12 11:08:13 -0400 |
commit | 88fcc980d1ae6157c43a45dae0f11faf29e1d6ee (patch) | |
tree | b4db3d86cdd1a0beca87cfa71b8f792dc4e58af6 /sysconfig | |
parent | 6958299da102c284d651ec9339e4cf07231abb51 (diff) | |
download | initscripts-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-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 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} |