network.subr (31472) | network.subr (32382) |
---|---|
1#!/bin/sh - 2# | 1#!/bin/sh - 2# |
3# $Id: rc.network,v 1.12 1997/11/07 20:45:34 sef Exp $ | 3# $Id: rc.network,v 1.13 1997/12/01 06:11:34 obrien 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. --- 41 unchanged lines hidden (view full) --- 53 ifconfig ${ifn} ${ifconfig_args} 54 fi 55 ifconfig ${ifn} 56 done 57 58 # Initialize IP filtering using ipfw 59 echo "" 60 /sbin/ipfw -q flush > /dev/null 2>&1 | 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. --- 41 unchanged lines hidden (view full) --- 53 ifconfig ${ifn} ${ifconfig_args} 54 fi 55 ifconfig ${ifn} 56 done 57 58 # Initialize IP filtering using ipfw 59 echo "" 60 /sbin/ipfw -q flush > /dev/null 2>&1 |
61 if [ $? = 1 ] ; then 62 firewall_in_kernel=0 63 else | 61 if [ $? = 0 ] ; then |
64 firewall_in_kernel=1 | 62 firewall_in_kernel=1 |
63 else 64 firewall_in_kernel=0 |
|
65 fi 66 67 if [ $firewall_in_kernel = 0 -a "x$firewall_enable" = "xYES" ] ; then 68 modload /lkm/ipfw_mod.o 69 if [ $? = 0 ]; then 70 firewall_in_kernel=1 # module loaded successfully 71 echo "Kernel firewall module loaded." 72 else --- 171 unchanged lines hidden --- | 65 fi 66 67 if [ $firewall_in_kernel = 0 -a "x$firewall_enable" = "xYES" ] ; then 68 modload /lkm/ipfw_mod.o 69 if [ $? = 0 ]; then 70 firewall_in_kernel=1 # module loaded successfully 71 echo "Kernel firewall module loaded." 72 else --- 171 unchanged lines hidden --- |