Fix a case when both ${name}_program and ${command} are defined.
Spotted by: Michio "Karl" Jinbo
This commit is contained in:
parent
d5e0b21541
commit
2880192bf2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197790
@ -602,7 +602,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