3 # $FreeBSD: src/etc/rc.d/ppp-user,v 1.4 2003/04/18 17:55:05 mtm Exp $
20 if [ "${ppp_mode}" != "ddial" -a "${ppp_mode}" != "direct" \
21 -a "${ppp_mode}" != "dedicated" \
22 -a "${ppp_mode}" != "background" ]; then
26 ppp_command
="/usr/sbin/ppp -quiet -${ppp_mode}"
32 ppp_command
="${ppp_command} -nat"
36 ppp_command
="${ppp_command} ${ppp_profile}"
38 echo "Starting ppp as \"${ppp_user}\""
39 su
-m ${ppp_user} -c "exec ${ppp_command}"
44 pids
=`check_process /usr/sbin/ppp`
45 if [ -n "${pids}" ]; then
46 for pid
in ${pids}; do