diff options
author | jkh <jkh@FreeBSD.org> | 1996-01-06 20:49:18 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-01-06 20:49:18 +0000 |
commit | a8e9d6a2eaa9df5881201d40c5c05c6154333fef (patch) | |
tree | 9774ae917de428904835f3674b070b7b22cf51c8 /etc | |
parent | 444412a7f1edef6ed564da6d463148d17a181bcc (diff) | |
download | FreeBSD-src-a8e9d6a2eaa9df5881201d40c5c05c6154333fef.zip FreeBSD-src-a8e9d6a2eaa9df5881201d40c5c05c6154333fef.tar.gz |
New hack for configuring routers spawns two new variables:
router=<some routed>
routerflags=<startup flags>
Submitted by: Paul Richards et al
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 122bb31..6a3f289 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 bdb750a..2bcffa6 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 |