diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-01-06 20:49:18 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-01-06 20:49:18 +0000 |
commit | cdbc1b435eb50156bcfd34cdea74dde9156efc5f (patch) | |
tree | 9774ae917de428904835f3674b070b7b22cf51c8 /etc | |
parent | d6cab90261545e2d1ecf575236167d9eb6169b59 (diff) | |
download | src-cdbc1b435eb50156bcfd34cdea74dde9156efc5f.tar.gz src-cdbc1b435eb50156bcfd34cdea74dde9156efc5f.zip |
New hack for configuring routers spawns two new variables:
router=<some routed>
routerflags=<startup flags>
Submitted by: Paul Richards et al
Notes
Notes:
svn path=/head/; revision=13277
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/netstart | 12 | ||||
-rw-r--r-- | etc/sysconfig | 9 |
2 files changed, 10 insertions, 11 deletions
diff --git a/etc/netstart b/etc/netstart index 122bb31e89fd..6a3f28962b26 100755 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: netstart,v 1.36 1995/12/28 01:24:03 jkh Exp $ +# $Id: netstart,v 1.37 1996/01/02 19:47:05 pst Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # Note that almost all the user-configurable behavior is no longer in @@ -59,14 +59,8 @@ if [ "x$gateway" != "xNO" ]; then sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 fi -if [ "x$routedflags" != "xNO" ] ; then +if [ "x$router" != "xNO" ] ; then echo -n starting routing daemon: - - # $routedflags is imported from /etc/sysconfig. - # If $routedflags == NO, routed isn't run. - - if [ "X${routedflags}" != X"NO" ]; then - echo -n ' routed'; routed $routedflags - fi + echo -n ' ${router}'; ${router} ${routerflags} echo '.' fi diff --git a/etc/sysconfig b/etc/sysconfig index bdb750a522bf..2bcffa6c641b 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.29 1995/12/28 01:24:04 jkh Exp $ +# $Id: sysconfig,v 1.30 1996/01/05 17:00:27 bde Exp $ ######################### Start Of Local Configuration Section ########### @@ -104,8 +104,13 @@ route_loopback="${hostname} localhost" # Set to the host you'd like set as your default router, or NO for none. defaultrouter=NO +# This is the routing daemon you want to use. Possible options are +# currently NO (for none), `routed' and `gated'. Also see `routerflags' +# for startup flags. +router=routed + # These are the flags you'd like to start the routing daemon with -routedflags=-q +routerflags=-q # timed flags, or NO if you don't want to start the time daemon timedflags=NO |