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!
This commit is contained in:
parent
be9edbd0fa
commit
ed9312810e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14018
@ -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}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user