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

(-)b/libexec/rc/rc.subr (-3 / +3 lines)
Lines 1042-1054 run_rc_command() Link Here
1042
			continue
1042
			continue
1043
		fi
1043
		fi
1044
					# if ${rcvar} is set, $1 is not "rcvar", "describe",
1044
					# if ${rcvar} is set, $1 is not "rcvar", "describe",
1045
					# "enable" or "delete", and ${rc_pid} is not set, run:
1045
					# "enable", "delete" or "status", and ${rc_pid} is
1046
                                        # not set, run:
1046
					#	checkyesno ${rcvar}
1047
					#	checkyesno ${rcvar}
1047
					# and return if that failed
1048
					# and return if that failed
1048
					#
1049
					#
1049
		if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" -a "$rc_arg" != "stop" \
1050
		if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" -a "$rc_arg" != "stop" \
1050
		    -a "$rc_arg" != "delete" -a "$rc_arg" != "enable" \
1051
		    -a "$rc_arg" != "delete" -a "$rc_arg" != "enable" \
1051
		    -a "$rc_arg" != "describe" ] ||
1052
		    -a "$rc_arg" != "describe" -a "$rc_arg" != "status" ] ||
1052
		    [ -n "${rcvar}" -a "$rc_arg" = "stop" -a -z "${rc_pid}" ]; then
1053
		    [ -n "${rcvar}" -a "$rc_arg" = "stop" -a -z "${rc_pid}" ]; then
1053
			if ! checkyesno ${rcvar}; then
1054
			if ! checkyesno ${rcvar}; then
1054
				if [ -n "${rc_quiet}" ]; then
1055
				if [ -n "${rc_quiet}" ]; then
1055
- 

Return to bug 272282