From e4001e9370a10047106b3592454caecebc77b71b Mon Sep 17 00:00:00 2001 From: jkh Date: Sun, 11 Feb 1996 04:07:27 +0000 Subject: 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! --- etc/netstart | 4 ++-- etc/sysconfig | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'etc') 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 -- cgit v1.1