summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-02-11 04:07:27 +0000
committerjkh <jkh@FreeBSD.org>1996-02-11 04:07:27 +0000
commite4001e9370a10047106b3592454caecebc77b71b (patch)
tree1575d0be880a2e8450f99ae444917301e9650cd9 /etc
parent7d8fc2aa85b9c418ba3d932062ac4632a31420b9 (diff)
downloadFreeBSD-src-e4001e9370a10047106b3592454caecebc77b71b.zip
FreeBSD-src-e4001e9370a10047106b3592454caecebc77b71b.tar.gz
Remove my previous bogus comment about the relationship between the
static_routes and defaultrouter variables. I'm glad I looked again, however, as I realized that setting static_routes to NO in the case of a defaultrouter would wind up with a bogus value for static_routes. It doesn't really hurt anything, but it's still wrong so I fixed it. I think this whole routing section of sysconfig needs a revisit - it's getting gross!
Diffstat (limited to 'etc')
-rwxr-xr-xetc/netstart4
-rw-r--r--etc/sysconfig9
2 files changed, 7 insertions, 6 deletions
diff --git a/etc/netstart b/etc/netstart
index b0a4a5a..9cdc135 100755
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: netstart,v 1.40 1996/01/31 15:02:24 mpp Exp $
+# $Id: netstart,v 1.41 1996/02/09 12:45:37 jkh Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -49,7 +49,7 @@ if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then
fi
# Set up any static routes. This should be done before router discovery.
-if [ "x${static_routes}" != "xNO" ]; then
+if [ "x${static_routes}" != "x" ]; then
for i in ${static_routes}; do
eval route_args=\$route_${i}
route add ${route_args}
diff --git a/etc/sysconfig b/etc/sysconfig
index 33c5d90..88dd6e9 100644
--- a/etc/sysconfig
+++ b/etc/sysconfig
@@ -4,7 +4,7 @@
# This is sysconfig - a file full of useful variables that you can set
# to change the default startup behavior of your system.
#
-# $Id: sysconfig,v 1.35 1996/02/09 12:20:40 jkh Exp $
+# $Id: sysconfig,v 1.36 1996/02/09 12:45:38 jkh Exp $
######################### Start Of Local Configuration Section ###########
@@ -96,15 +96,16 @@ ifconfig_lo0="inet localhost"
#
# Set to the list of route add lines for this host. You must have a
# route_${static_routes} line for each static route listed here (unless
-# static_routes is set to NO).
+# static_routes is set to "" - do NOT use ``NO'' to denote a lack of static
+# routes!).
#
#static_routes="foo multicast"
#route_foo="woofo woofo-gw"
#route_multicast="224.0.0.0 -netmask 0xf0000000 -interface 10.0.0.1"
-static_routes=NO
+static_routes=""
# Set to the host you'd like set as your default router, or NO for none.
-# Note: If set, this option *overrides* the static_routes variable.
+# This is the same as adding a ``default'' entry to static_routes.
defaultrouter=NO
# This is the routing daemon you want to use. Possible options are
OpenPOWER on IntegriCloud