View | Details | Raw Unified | Return to bug 105145
Collapse All | Expand All

(-)ppp (+20 lines)
Lines 14-19 rcvar=`set_rcvar` Link Here
14
command="/usr/sbin/${name}"
14
command="/usr/sbin/${name}"
15
start_precmd="ppp_precmd"
15
start_precmd="ppp_precmd"
16
start_postcmd="ppp_postcmd"
16
start_postcmd="ppp_postcmd"
17
redial_cmd="ppp_redial"
18
extra_commands="redial"
17
19
18
ppp_precmd()
20
ppp_precmd()
19
{
21
{
Lines 46-50 ppp_postcmd() Link Here
46
	/etc/rc.d/pf resync
48
	/etc/rc.d/pf resync
47
}
49
}
48
50
51
ppp_redial()
52
{
53
	# Only sent SIGINT when in auto or ddial mode. See ppp(8)
54
	if [ "${ppp_mode}" = "ddial" -o "${ppp_mode}" = "auto" ]; then
55
	  if [ -z "$rc_pid" ]; then
56
	    if [ -n "$pidfile" ]; then
57
	      echo 1>&2 "${name} not running? (check $pidfile)."
58
	    else
59
	      echo 1>&2 "${name} not running?"
60
	    fi
61
	    return 1
62
	  fi
63
64
	  kill -SIGINT $rc_pid
65
	fi
66
67
}
68
49
load_rc_config $name
69
load_rc_config $name
50
run_rc_command "$1"
70
run_rc_command "$1"

Return to bug 105145