3 # $FreeBSD: src/etc/rc.d/ppp-user,v 1.4 2003/04/18 17:55:05 mtm Exp $
4 # $DragonFly: src/etc/rc.d/ppp-user,v 1.4 2005/11/19 21:47:32 swildner Exp $
21 if [ "${ppp_mode}" != "ddial" -a "${ppp_mode}" != "direct" \
22 -a "${ppp_mode}" != "dedicated" \
23 -a "${ppp_mode}" != "background" ]; then
27 ppp_command
="/usr/sbin/ppp -quiet -${ppp_mode}"
33 ppp_command
="${ppp_command} -nat"
37 ppp_command
="${ppp_command} ${ppp_profile}"
39 echo "Starting ppp as \"${ppp_user}\""
40 su
-m ${ppp_user} -c "exec ${ppp_command}"
42 # Re-Sync ipfilter so it picks up any new network interfaces
44 /etc
/rc.d
/ipfilter resync
49 pids
=`check_process /usr/sbin/ppp`
50 if [ -n "${pids}" ]; then
51 for pid
in ${pids}; do
56 /etc
/rc.d
/ipfilter resync