netoptions (37514) | netoptions (38316) |
---|---|
1#!/bin/sh - 2# | 1#!/bin/sh - 2# |
3# $Id: rc.network,v 1.27 1998/06/14 16:31:03 steve Exp $ | 3# $Id: rc.network,v 1.28 1998/07/08 15:40:53 nectar 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. --- 243 unchanged lines hidden (view full) --- 255 # Kerberos runs ONLY on the Kerberos server machine 256 if [ "X${kerberos_server_enable}" = X"YES" ]; then 257 if [ "X${kerberos_stash}" = "XYES" ]; then 258 stash_flag=-n 259 else 260 stash_flag= 261 fi 262 echo -n ' kerberos'; \ | 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. --- 243 unchanged lines hidden (view full) --- 255 # Kerberos runs ONLY on the Kerberos server machine 256 if [ "X${kerberos_server_enable}" = X"YES" ]; then 257 if [ "X${kerberos_stash}" = "XYES" ]; then 258 stash_flag=-n 259 else 260 stash_flag= 261 fi 262 echo -n ' kerberos'; \ |
263 kerberos ${stash_flags} >> /var/log/kerberos.log & | 263 kerberos ${stash_flag} >> /var/log/kerberos.log & |
264 if [ "X${kadmind_server_enable}" = "XYES" ]; then 265 echo -n ' kadmind'; \ | 264 if [ "X${kadmind_server_enable}" = "XYES" ]; then 265 echo -n ' kadmind'; \ |
266 (sleep 20; kadmind ${stash_flags} >/dev/null 2>&1 &) & | 266 (sleep 20; kadmind ${stash_flag} >/dev/null 2>&1 &) & |
267 fi 268 unset stash_flag 269 fi 270 271 # Network Address Translation daemon 272 if [ "X${natd_enable}" = X"YES" -a X"${natd_interface}" != X"" \ 273 -a X"${firewall_enable}" = X"YES" ]; then 274 if echo ${natd_interface} | \ 275 grep -q -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'; then 276 natd_ifarg="-a ${natd_interface}" 277 else 278 natd_ifarg="-n ${natd_interface}" 279 fi 280 echo -n ' natd'; natd ${natd_flags} ${natd_ifarg} 281 fi 282 283 echo '.' 284 network_pass3_done=YES 285} | 267 fi 268 unset stash_flag 269 fi 270 271 # Network Address Translation daemon 272 if [ "X${natd_enable}" = X"YES" -a X"${natd_interface}" != X"" \ 273 -a X"${firewall_enable}" = X"YES" ]; then 274 if echo ${natd_interface} | \ 275 grep -q -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'; then 276 natd_ifarg="-a ${natd_interface}" 277 else 278 natd_ifarg="-n ${natd_interface}" 279 fi 280 echo -n ' natd'; natd ${natd_flags} ${natd_ifarg} 281 fi 282 283 echo '.' 284 network_pass3_done=YES 285} |