mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
MFC r206686:
Make 'stop' work even if ${name}_enable is not set.
This commit is contained in:
parent
19effccdee
commit
5857a1b3a6
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue