aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-11-16 17:05:29 +0000
committerBill Nottingham <notting@redhat.com>1999-11-16 17:05:29 +0000
commita8881820756800c8809765af24d2add783fad2ad (patch)
tree659ac0483906152b484e4ac28b8c59019e055e40
parente042728368d23e120eb0ad92421c086edaf25bb7 (diff)
downloadinitscripts-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-xsysconfig/network-scripts/ifup8
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