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/netstart | |
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/netstart')
-rwxr-xr-x | etc/netstart | 12 |
1 files changed, 3 insertions, 9 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 |