routing (39380) | routing (40006) |
---|---|
1#!/bin/sh - 2# | 1#!/bin/sh - 2# |
3# $Id: rc.network,v 1.31 1998/09/15 10:49:02 jkoshy Exp $ | 3# $Id: rc.network,v 1.32 1998/09/16 20:38:23 cracauer 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. --- 8 unchanged lines hidden (view full) --- 20 21 # Set the domainname if we're using NIS 22 if [ -n "$nisdomainname" -a "x$nisdomainname" != "xNO" ] ; then 23 domainname $nisdomainname 24 echo -n ' domain' 25 fi 26 echo '.' 27 | 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. --- 8 unchanged lines hidden (view full) --- 20 21 # Set the domainname if we're using NIS 22 if [ -n "$nisdomainname" -a "x$nisdomainname" != "xNO" ] ; then 23 domainname $nisdomainname 24 echo -n ' domain' 25 fi 26 echo '.' 27 |
28 # Initial ATM interface configuration 29 if [ "X${atm_enable}" = X"YES" -a -f /etc/rc.atm ]; then 30 . /etc/rc.atm 31 atm_pass1 32 fi 33 |
|
28 # Set up all the network interfaces, calling startup scripts if needed 29 for ifn in ${network_interfaces}; do 30 if [ -e /etc/start_if.${ifn} ]; then 31 . /etc/start_if.${ifn} 32 fi 33 # Do the primary ifconfig if specified 34 eval ifconfig_args=\$ifconfig_${ifn} 35 if [ -n "${ifconfig_args}" ] ; then --- 48 unchanged lines hidden (view full) --- 84 if [ "$IPFW_DEFAULT" = "65535 deny ip from any to any" ]; then 85 echo -n "Warning: kernel has firewall functionality, " 86 echo "but firewall rules are not enabled." 87 echo " All ip services are disabled." 88 fi 89 fi 90 fi 91 | 34 # Set up all the network interfaces, calling startup scripts if needed 35 for ifn in ${network_interfaces}; do 36 if [ -e /etc/start_if.${ifn} ]; then 37 . /etc/start_if.${ifn} 38 fi 39 # Do the primary ifconfig if specified 40 eval ifconfig_args=\$ifconfig_${ifn} 41 if [ -n "${ifconfig_args}" ] ; then --- 48 unchanged lines hidden (view full) --- 90 if [ "$IPFW_DEFAULT" = "65535 deny ip from any to any" ]; then 91 echo -n "Warning: kernel has firewall functionality, " 92 echo "but firewall rules are not enabled." 93 echo " All ip services are disabled." 94 fi 95 fi 96 fi 97 |
98 # Additional ATM interface configuration 99 if [ -n "${atm_pass1_done}" ]; then 100 atm_pass2 101 fi 102 |
|
92 # Configure routing 93 94 if [ "x$defaultrouter" != "xNO" ] ; then 95 static_routes="default ${static_routes}" 96 route_default="default ${defaultrouter}" 97 fi 98 99 # Set up any static routes. This should be done before router discovery. --- 110 unchanged lines hidden (view full) --- 210 if [ "X${keyserv_enable}" = X"YES" ]; then 211 echo -n ' keyserv'; keyserv ${keyserv_flags} 212 fi 213 # Start ypupdated if we are running Secure RPC and we are NIS master 214 if [ "X$rpc_ypupdated_enable" = X"YES" ]; then 215 echo -n ' rpc.ypupdated'; rpc.ypupdated 216 fi 217 | 103 # Configure routing 104 105 if [ "x$defaultrouter" != "xNO" ] ; then 106 static_routes="default ${static_routes}" 107 route_default="default ${defaultrouter}" 108 fi 109 110 # Set up any static routes. This should be done before router discovery. --- 110 unchanged lines hidden (view full) --- 221 if [ "X${keyserv_enable}" = X"YES" ]; then 222 echo -n ' keyserv'; keyserv ${keyserv_flags} 223 fi 224 # Start ypupdated if we are running Secure RPC and we are NIS master 225 if [ "X$rpc_ypupdated_enable" = X"YES" ]; then 226 echo -n ' rpc.ypupdated'; rpc.ypupdated 227 fi 228 |
229 # Start ATM daemons 230 if [ -n "${atm_pass2_done}" ]; then 231 atm_pass3 232 fi 233 |
|
218 echo '.' 219 network_pass2_done=YES 220} 221 222network_pass3() { 223 echo -n 'Starting final network daemons:' 224 225 if [ "X${nfs_server_enable}" = X"YES" -a -r /etc/exports ]; then --- 64 unchanged lines hidden --- | 234 echo '.' 235 network_pass2_done=YES 236} 237 238network_pass3() { 239 echo -n 'Starting final network daemons:' 240 241 if [ "X${nfs_server_enable}" = X"YES" -a -r /etc/exports ]; then --- 64 unchanged lines hidden --- |