From 1c244e7f6723d46d5ddd01bfd14bae1a5b933370 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 30 Jan 2001 21:30:59 +0000 Subject: fix gateway thinko --- sysconfig/network-scripts/ifup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/ifup') diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 6c7aa33d..e64ba822 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -153,7 +153,7 @@ else if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then # set up default gateway - if [ "${GATEWAY}" != "" -a "`ipcalc --network ${GATEWAY} ${NETMASK}`" = "${NETWORK}" ]; then + if [ "${GATEWAY}" != "" -a "`ipcalc --network ${GATEWAY} ${NETMASK}`" = "NETWORK=${NETWORK}" ]; then route add default gw ${GATEWAY} ${DEVICE} DEFGW=${GATEWAY} elif [ "${GATEWAYDEV}" = "${DEVICE}" ]; then -- cgit v1.2.1