From 066961f27133f060e07aaef294ca0b867ff624ed Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 6 Dec 2010 15:36:29 -0500 Subject: [PATCH] Add patch. --- diff | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 diff diff --git a/diff b/diff new file mode 100644 index 0000000..1021a42 --- /dev/null +++ b/diff @@ -0,0 +1,13 @@ +diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth +index dd9fb5e..326eba1 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}