Deleted Added
full compact
netoptions (63147) netoptions (64471)
1#!/bin/sh -
2#
1#!/bin/sh -
2#
3# $FreeBSD: head/etc/rc.d/netoptions 63147 2000-07-14 13:03:36Z nbm $
3# $FreeBSD: head/etc/rc.d/netoptions 64471 2000-08-10 00:13:02Z brian $
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.

--- 121 unchanged lines hidden (view full) ---

133 case ${isdn_enable} in
134 [Yy][Ee][Ss])
135 if [ -r /etc/rc.isdn ]; then
136 . /etc/rc.isdn
137 fi
138 ;;
139 esac
140
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.

--- 121 unchanged lines hidden (view full) ---

133 case ${isdn_enable} in
134 [Yy][Ee][Ss])
135 if [ -r /etc/rc.isdn ]; then
136 . /etc/rc.isdn
137 fi
138 ;;
139 esac
140
141 # Warm up user ppp if required, must happen before natd.
141 # Start user ppp if required. This must happen before natd.
142 #
143 case ${ppp_enable} in
144 [Yy][Ee][Ss])
145 # Establish ppp mode.
146 #
147 if [ "${ppp_mode}" != "ddial" -a "${ppp_mode}" != "direct" \
148 -a "${ppp_mode}" != "dedicated" \
149 -a "${ppp_mode}" != "background" ]; then
142 #
143 case ${ppp_enable} in
144 [Yy][Ee][Ss])
145 # Establish ppp mode.
146 #
147 if [ "${ppp_mode}" != "ddial" -a "${ppp_mode}" != "direct" \
148 -a "${ppp_mode}" != "dedicated" \
149 -a "${ppp_mode}" != "background" ]; then
150 ppp_mode="auto";
150 ppp_mode="auto"
151 fi
152
151 fi
152
153 ppp_command="-${ppp_mode} ";
153 ppp_command="/usr/sbin/ppp -quiet -${ppp_mode}"
154
154
155 # Switch on alias mode?
155 # Switch on NAT mode?
156 #
157 case ${ppp_nat} in
158 [Yy][Ee][Ss])
156 #
157 case ${ppp_nat} in
158 [Yy][Ee][Ss])
159 ppp_command="${ppp_command} -nat";
159 ppp_command="${ppp_command} -nat"
160 ;;
161 esac
162
160 ;;
161 esac
162
163 echo -n 'Starting ppp: '; ppp ${ppp_command} -quiet ${ppp_profile}
163 ppp_command="${ppp_command} ${ppp_profile}"
164
165 echo -n "Starting ppp as \"${ppp_user}\""
166 su ${ppp_user} -c "exec ${ppp_command}"
164 ;;
165 esac
166
167 # Initialize IP filtering using ipfw
168 #
167 ;;
168 esac
169
170 # Initialize IP filtering using ipfw
171 #
169 echo ''
170
171 if /sbin/ipfw -q flush > /dev/null 2>&1; then
172 firewall_in_kernel=1
173 else
174 firewall_in_kernel=0
175 fi
176
177 case ${firewall_enable} in
178 [Yy][Ee][Ss])

--- 504 unchanged lines hidden ---
172 if /sbin/ipfw -q flush > /dev/null 2>&1; then
173 firewall_in_kernel=1
174 else
175 firewall_in_kernel=0
176 fi
177
178 case ${firewall_enable} in
179 [Yy][Ee][Ss])

--- 504 unchanged lines hidden ---