diff options
author | Bill Nottingham <notting@redhat.com> | 1999-11-16 17:05:29 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-11-16 17:05:29 +0000 |
commit | a8881820756800c8809765af24d2add783fad2ad (patch) | |
tree | 659ac0483906152b484e4ac28b8c59019e055e40 | |
parent | e042728368d23e120eb0ad92421c086edaf25bb7 (diff) | |
download | initscripts-a8881820756800c8809765af24d2add783fad2ad.tar initscripts-a8881820756800c8809765af24d2add783fad2ad.tar.gz initscripts-a8881820756800c8809765af24d2add783fad2ad.tar.bz2 initscripts-a8881820756800c8809765af24d2add783fad2ad.tar.xz initscripts-a8881820756800c8809765af24d2add783fad2ad.zip |
add default route but no gateway <hanecak@megaloman.com>
-rwxr-xr-x | sysconfig/network-scripts/ifup | 8 |
1 files 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 |