Allow $name_program to override $command in a more robust way that
will not cause the value to be null if $command is not set.
This commit is contained in:
parent
290512231a
commit
0e22665fc7
@ -616,7 +616,7 @@ run_rc_command()
|
||||
esac
|
||||
|
||||
eval _override_command=\$${name}_program
|
||||
command=${command:+${_override_command:-$command}}
|
||||
command=${_override_command:-$command}
|
||||
|
||||
_keywords="start stop restart rcvar $extra_commands"
|
||||
rc_pid=
|
||||
|
Loading…
Reference in New Issue
Block a user