summaryrefslogtreecommitdiffstats
path: root/etc/netstart
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-02-09 12:45:38 +0000
committerjkh <jkh@FreeBSD.org>1996-02-09 12:45:38 +0000
commita4c758d85cd8995aaeb0f9cfce3f293fe03d3f86 (patch)
tree1b6bfddcb7388c98bc352aa4ded4ce485580b330 /etc/netstart
parentbf2b0406b9955b9d6fbd235d297a52c37bada311 (diff)
downloadFreeBSD-src-a4c758d85cd8995aaeb0f9cfce3f293fe03d3f86.zip
FreeBSD-src-a4c758d85cd8995aaeb0f9cfce3f293fe03d3f86.tar.gz
Close conf/1007 and take this opportunity to correct a few long-standing
bogons with the way static_routes was being handled. Also document the fact that default_router overrides static_routes entirely.
Diffstat (limited to 'etc/netstart')
-rwxr-xr-xetc/netstart12
1 files changed, 7 insertions, 5 deletions
diff --git a/etc/netstart b/etc/netstart
index 49c3523..b0a4a5a 100755
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: netstart,v 1.39 1996/01/08 04:50:18 jkh Exp $
+# $Id: netstart,v 1.40 1996/01/31 15:02:24 mpp Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -49,10 +49,12 @@ if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then
fi
# Set up any static routes. This should be done before router discovery.
-for i in ${static_routes}; do
- eval route_args=\$route_${i}
- route add ${route_args}
-done
+if [ "x${static_routes}" != "xNO" ]; then
+ for i in ${static_routes}; do
+ eval route_args=\$route_${i}
+ route add ${route_args}
+ done
+fi
if [ "x$gateway" != "xNO" ]; then
echo 'configuring host as a gateway.'
OpenPOWER on IntegriCloud