From b355ddffd6ef175fdd545f8ed2c1be7503fb0325 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 12 Mar 2001 02:52:05 +0000 Subject: get rid of error message if ${GATEWAY} isn't set --- 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 ca24b3e7..a3834af7 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -166,7 +166,7 @@ else if [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then # set up default gateway - if [ -n "${GATEWAY}" -a "`ipcalc --network ${GATEWAY} ${NETMASK}`" = "NETWORK=${NETWORK}" ]; then + if [ -n "${GATEWAY}" -a "`ipcalc --network ${GATEWAY} ${NETMASK}` 2>/dev/null" = "NETWORK=${NETWORK}" ]; then route add default gw ${GATEWAY} ${DEVICE} DEFGW=${GATEWAY} elif [ "${GATEWAYDEV}" = "${DEVICE}" ]; then -- cgit v1.2.1