Deleted Added
full compact
netoptions (25364) netoptions (25365)
1#!/bin/sh -
2#
1#!/bin/sh -
2#
3# $Id: rc.network,v 1.3 1997/05/01 04:38:16 jkh Exp $
3# $Id: rc.network,v 1.4 1997/05/01 20:04:42 jkh Exp $
4# From: @(#)netstart 5.9 (Berkeley) 3/30/91
5
6# Note that almost all the user-configurable behavior is no longer in
7# this file, but rather in /etc/rc.conf. Please check that file
8# first before contemplating any changes here. If you do need to change
9# this file for some reason, we would like to know about it.
10
11# First pass startup stuff.

--- 59 unchanged lines hidden (view full) ---

71 for i in ${static_routes}; do
72 eval route_args=\$route_${i}
73 route add ${route_args}
74 done
75 fi
76
77 echo -n 'Additional routing options:'
78 if [ "X$gateway_enable" = X"YES" ]; then
4# From: @(#)netstart 5.9 (Berkeley) 3/30/91
5
6# Note that almost all the user-configurable behavior is no longer in
7# this file, but rather in /etc/rc.conf. Please check that file
8# first before contemplating any changes here. If you do need to change
9# this file for some reason, we would like to know about it.
10
11# First pass startup stuff.

--- 59 unchanged lines hidden (view full) ---

71 for i in ${static_routes}; do
72 eval route_args=\$route_${i}
73 route add ${route_args}
74 done
75 fi
76
77 echo -n 'Additional routing options:'
78 if [ "X$gateway_enable" = X"YES" ]; then
79 echo -n ' IP gateway=1'
79 echo -n ' IP gateway=YES'
80 sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
81 fi
82
83 if [ "X$router_enable" = X"YES" ]; then
84 echo -n " ${router}"; ${router} ${router_flags}
85 fi
86
87 if [ "X$ipxgateway_enable" = X"YES" ]; then
80 sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
81 fi
82
83 if [ "X$router_enable" = X"YES" ]; then
84 echo -n " ${router}"; ${router} ${router_flags}
85 fi
86
87 if [ "X$ipxgateway_enable" = X"YES" ]; then
88 echo -n ' IPX gateway=1'
88 echo -n ' IPX gateway=YES'
89 sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1
90 fi
91
92 if [ "X$ipxrouted_enable" = X"YES" ]; then
93 echo -n ' IPXrouted: '
94 IPXrouted ${ipxrouted_flags} > /dev/null 2>&1
95 fi
96 echo '.'
97 network_pass1_done=YES # Let future generations know we made it.
98}
99
100network_pass2() {
101 echo -n 'Doing additional network setup:'
89 sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1
90 fi
91
92 if [ "X$ipxrouted_enable" = X"YES" ]; then
93 echo -n ' IPXrouted: '
94 IPXrouted ${ipxrouted_flags} > /dev/null 2>&1
95 fi
96 echo '.'
97 network_pass1_done=YES # Let future generations know we made it.
98}
99
100network_pass2() {
101 echo -n 'Doing additional network setup:'
102 if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then
103 echo -n ' tcp extentions=0'
102 if [ -n "$tcp_extentions" -a "x$tcp_extentions" != "xYES" ] ; then
103 echo -n ' tcp extentions=NO'
104 sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1
105 sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1
106 fi
107 if [ "X${named_enable}" = X"YES" ]; then
108 echo -n ' named'; named ${named_flags}
109 fi
110
111 if [ "X${ntpdate_enable}" = X"YES" -o "X${xntpd_enable}" = X"YES" ]; then

--- 49 unchanged lines hidden (view full) ---

161
162 if [ "X${nfs_server_enable}" = X"YES" -a -r /etc/exports ]; then
163 echo -n ' mountd'
164 if [ "X${weak_mountd_authentication}" = X"YES" ]; then
165 mountd_flags="-n"
166 fi
167 mountd ${mountd_flags}
168 if [ "X${nfs_reserved_port_only}" = X"YES" ]; then
104 sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1
105 sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1
106 fi
107 if [ "X${named_enable}" = X"YES" ]; then
108 echo -n ' named'; named ${named_flags}
109 fi
110
111 if [ "X${ntpdate_enable}" = X"YES" -o "X${xntpd_enable}" = X"YES" ]; then

--- 49 unchanged lines hidden (view full) ---

161
162 if [ "X${nfs_server_enable}" = X"YES" -a -r /etc/exports ]; then
163 echo -n ' mountd'
164 if [ "X${weak_mountd_authentication}" = X"YES" ]; then
165 mountd_flags="-n"
166 fi
167 mountd ${mountd_flags}
168 if [ "X${nfs_reserved_port_only}" = X"YES" ]; then
169 echo -n ' nfsprivport=1'
169 echo -n ' nfsprivport=YES'
170 sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1
171 fi
172 echo -n ' nfsd'; nfsd -u -t 4
173 if [ "X$rpc_lockd_enable" = X"YES" ]; then
174 echo -n ' rpc.lockd'; rpc.lockd
175 fi
176 if [ "X$rpc_statd_enable" = X"YES" ]; then
177 echo -n ' rpc.statd'; rpc.statd

--- 30 unchanged lines hidden ---
170 sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1
171 fi
172 echo -n ' nfsd'; nfsd -u -t 4
173 if [ "X$rpc_lockd_enable" = X"YES" ]; then
174 echo -n ' rpc.lockd'; rpc.lockd
175 fi
176 if [ "X$rpc_statd_enable" = X"YES" ]; then
177 echo -n ' rpc.statd'; rpc.statd

--- 30 unchanged lines hidden ---