From a1878de77cd21b152dd66c09c2e2aebbe924b95f Mon Sep 17 00:00:00 2001 From: dougb Date: Thu, 15 Oct 2009 23:20:23 +0000 Subject: 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. --- etc/rc.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/rc.subr') diff --git a/etc/rc.subr b/etc/rc.subr index fa372dd..2e502db 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -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= -- cgit v1.1