network.subr (66422) | network.subr (66745) |
---|---|
1#!/bin/sh - 2# | 1#!/bin/sh - 2# |
3# $FreeBSD: head/etc/network.subr 66422 2000-09-28 05:43:44Z brian $ | 3# $FreeBSD: head/etc/network.subr 66745 2000-10-06 12:24:45Z darrenr $ |
4# From: @(#)netstart 5.9 (Berkeley) 3/30/91 5 6# Note that almost all of the user-configurable behavior is no longer in 7# this file, but rather in /etc/defaults/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. --- 15 unchanged lines hidden (view full) --- 27 28 # Set the host name if it is not already set 29 # 30 if [ -z "`hostname -s`" ]; then 31 hostname ${hostname} 32 echo -n ' hostname' 33 fi 34 | 4# From: @(#)netstart 5.9 (Berkeley) 3/30/91 5 6# Note that almost all of the user-configurable behavior is no longer in 7# this file, but rather in /etc/defaults/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. --- 15 unchanged lines hidden (view full) --- 27 28 # Set the host name if it is not already set 29 # 30 if [ -z "`hostname -s`" ]; then 31 hostname ${hostname} 32 echo -n ' hostname' 33 fi 34 |
35 # Establish ipfilter ruleset as early as possible (best in 36 # addition to IPFILTER_DEFAULT_BLOCK in the kernel config file) 37 # 38 case "${ipfilter_enable}" in 39 [Yy][Ee][Ss]) 40 if [ -r "${ipfilter_rules}" ]; then 41 echo -n ' ipfilter'; 42 ${ipfilter_program:-ipf -Fa -f} "${ipfilter_rules}" ${ipfilter_flags} 43 case "${ipmon_enable}" in 44 [Yy][Ee][Ss]) 45 echo -n ' ipmon' 46 ${ipmon_program:-ipmon} ${ipmon_flags} 47 ;; 48 esac 49 case "${ipnat_enable}" in 50 [Yy][Ee][Ss]) 51 if [ -r "${ipnat_rules}" ]; then 52 echo -n ' ipnat'; 53 ${ipnat_program:-ipnat -CF -f} "${ipnat_rules}" ${ipnat_flags} 54 else 55 echo -n ' NO IPNAT RULES' 56 fi 57 ;; 58 esac 59 else 60 ipfilter_enable="NO" 61 echo -n ' NO IPF RULES' 62 fi 63 ;; 64 esac 65 |
|
35 # Set the domainname if we're using NIS 36 # 37 case ${nisdomainname} in 38 [Nn][Oo] | '') 39 ;; 40 *) 41 domainname ${nisdomainname} 42 echo -n ' domain' --- 670 unchanged lines hidden --- | 66 # Set the domainname if we're using NIS 67 # 68 case ${nisdomainname} in 69 [Nn][Oo] | '') 70 ;; 71 *) 72 domainname ${nisdomainname} 73 echo -n ' domain' --- 670 unchanged lines hidden --- |