MFC r206686:

Make 'stop' work even if ${name}_enable is not set.
This commit is contained in:
Doug Barton 2010-05-08 21:18:22 +00:00
parent 19effccdee
commit 5857a1b3a6

View file

@ -663,12 +663,12 @@ run_rc_command()
if [ "$_elem" != "$rc_arg" ]; then
continue
fi
# if ${rcvar} is set, and $1 is not
# "rcvar", then run
# if ${rcvar} is set, $1 is not "rcvar"
# and ${rc_pid} is not set, then run
# checkyesno ${rcvar}
# and return if that failed
#
if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" ]; then
if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" -a -z "${rc_pid}" ]; then
if ! checkyesno ${rcvar}; then
if [ -n "${rc_quiet}" ]; then
return 0