From a8881820756800c8809765af24d2add783fad2ad Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 16 Nov 1999 17:05:29 +0000 Subject: add default route but no gateway --- sysconfig/network-scripts/ifup | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 27ea7843..543c2a41 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -125,11 +125,13 @@ else . /etc/sysconfig/network - if [ "${GATEWAY}" != "" ]; then - if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then - # set up default gateway + if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then + # set up default gateway + if [ "${GATEWAY}" != "" ]; then route add default gw ${GATEWAY} ${DEVICE} DEFGW=${GATEWAY} + else + route add default ${DEVICE} fi fi fi -- cgit v1.2.1