netoptions (25916) | netoptions (27218) |
---|---|
1#!/bin/sh - 2# | 1#!/bin/sh - 2# |
3# $Id: rc.network,v 1.7 1997/05/13 08:22:27 jkh Exp $ | 3# $Id: rc.network,v 1.8 1997/05/19 07:46:48 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. --- 58 unchanged lines hidden (view full) --- 70 if [ "x${static_routes}" != "x" ]; then 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:' | 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. --- 58 unchanged lines hidden (view full) --- 70 if [ "x${static_routes}" != "x" ]; then 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 [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then 79 echo -n ' tcp extensions=NO' 80 sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1 81 sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1 82 fi 83 |
|
78 if [ "X$gateway_enable" = X"YES" ]; then 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 --- 13 unchanged lines hidden (view full) --- 99 sysctl -w net.link.ether.inet.proxyall=1 2>&1 100 fi 101 echo '.' 102 network_pass1_done=YES # Let future generations know we made it. 103} 104 105network_pass2() { 106 echo -n 'Doing additional network setup:' | 84 if [ "X$gateway_enable" = X"YES" ]; then 85 echo -n ' IP gateway=YES' 86 sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 87 fi 88 89 if [ "X$router_enable" = X"YES" ]; then 90 echo -n " ${router}"; ${router} ${router_flags} 91 fi --- 13 unchanged lines hidden (view full) --- 105 sysctl -w net.link.ether.inet.proxyall=1 2>&1 106 fi 107 echo '.' 108 network_pass1_done=YES # Let future generations know we made it. 109} 110 111network_pass2() { 112 echo -n 'Doing additional network setup:' |
107 if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then 108 echo -n ' tcp extensions=NO' 109 sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1 110 sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1 111 fi | |
112 if [ "X${named_enable}" = X"YES" ]; then 113 echo -n ' named'; named ${named_flags} 114 fi 115 116 if [ "X${ntpdate_enable}" = X"YES" -o "X${xntpd_enable}" = X"YES" ]; then 117 if [ "X${ntpdate_enable}" = X"YES" ]; then 118 echo -n ' ntpdate'; ntpdate ${ntpdate_flags} >/dev/null 2>&1 119 fi --- 89 unchanged lines hidden --- | 113 if [ "X${named_enable}" = X"YES" ]; then 114 echo -n ' named'; named ${named_flags} 115 fi 116 117 if [ "X${ntpdate_enable}" = X"YES" -o "X${xntpd_enable}" = X"YES" ]; then 118 if [ "X${ntpdate_enable}" = X"YES" ]; then 119 echo -n ' ntpdate'; ntpdate ${ntpdate_flags} >/dev/null 2>&1 120 fi --- 89 unchanged lines hidden --- |