14 command="/usr/sbin/${name}"
16 start_postcmd="ppp_poststart"
20 local _ppp_profile _ppp_mode _ppp_nat
24 # Check for ppp profile mode override.
26 eval _ppp_mode=\$ppp_${_ppp_profile}_mode
27 if [ -z "$_ppp_mode" ]; then
31 # Check for ppp profile nat override.
33 eval _ppp_nat=\$ppp_${_ppp_profile}_nat
34 if [ -z "$_ppp_nat" ]; then
40 if [ "${_ppp_mode}" != "ddial" -a "${_ppp_mode}" != "direct" \
41 -a "${_ppp_mode}" != "dedicated" \
42 -a "${_ppp_mode}" != "background" ]; then
46 rc_flags="-quiet -${_ppp_mode}"
52 rc_flags="$rc_flags -nat"
58 su -m $ppp_user -c "$command ${rc_flags} ${_ppp_profile}"
65 echo -n "Starting PPP profile:"
67 for _p in $ppp_profile; do
77 # Re-Sync ipfilter and pf so they pick up any new network interfaces
79 /etc/rc.d/ipfilter resync