aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-03-12 02:52:05 +0000
committerBill Nottingham <notting@redhat.com>2001-03-12 02:52:05 +0000
commitb355ddffd6ef175fdd545f8ed2c1be7503fb0325 (patch)
tree113f41901531869677888b8afe8acd6faac8d81d /sysconfig/network-scripts
parent6969716334286f6be694ce25fcff24d33bcf1e3c (diff)
downloadinitscripts-b355ddffd6ef175fdd545f8ed2c1be7503fb0325.tar
initscripts-b355ddffd6ef175fdd545f8ed2c1be7503fb0325.tar.gz
initscripts-b355ddffd6ef175fdd545f8ed2c1be7503fb0325.tar.bz2
initscripts-b355ddffd6ef175fdd545f8ed2c1be7503fb0325.tar.xz
initscripts-b355ddffd6ef175fdd545f8ed2c1be7503fb0325.zip
get rid of error message if ${GATEWAY} isn't set
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup2
1 files changed, 1 insertions, 1 deletions
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