diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-12-28 01:24:04 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-12-28 01:24:04 +0000 |
| commit | 9fdf89e00d9e2802bbcc4b5b2d94738b496e43b6 (patch) | |
| tree | 9dbfadd1ea3b346437a48c3b430d62c0b19d2802 /etc/netstart | |
| parent | aa8bdaec2ba095c59a870ad472b084cdf7df5849 (diff) | |
Notes
Diffstat (limited to 'etc/netstart')
| -rwxr-xr-x | etc/netstart | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/etc/netstart b/etc/netstart index 9394644d24847..7d2bd37488a0e 100755 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: netstart,v 1.34 1995/08/23 07:12:15 jkh Exp $ +# $Id: netstart,v 1.35 1995/08/25 07:18:04 davidg Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # Note that almost all the user-configurable behavior is no longer in @@ -56,21 +56,17 @@ done if [ "x$gateway" != "xNO" ]; then echo 'configuring host as a gateway.' - sysctl -w net.inet.ip.forwarding=1 + sysctl -w net.inet.ip.forwarding=1 >& /dev/null fi -if [ "x$gated" != "xNO" -o "x$routedflags" != "xNO" ] ; then - echo -n starting routing daemons: +if [ "x$routedflags" != "xNO" ] ; then + echo -n starting routing daemon: - # $gated and $routedflags are imported from /etc/sysconfig. - # If $gated == YES, gated is used; otherwise routed. + # $routedflags is imported from /etc/sysconfig. # If $routedflags == NO, routed isn't run. - if [ "X${gated}" = X"YES" -a -r /etc/gated.conf ]; then - echo -n ' gated'; /usr/local/sbin/gated $gatedflags - elif [ "X${routedflags}" != X"NO" ]; then + if [ "X${routedflags}" != X"NO" ]; then echo -n ' routed'; routed $routedflags fi - echo '.' fi |
