From 0e22665fc7c7c3485d5196accc5999316f8909d6 Mon Sep 17 00:00:00 2001 From: Doug Barton Date: Thu, 15 Oct 2009 23:20:23 +0000 Subject: [PATCH] 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(-) diff --git a/etc/rc.subr b/etc/rc.subr index fa372ddf3690..2e502dbf44ca 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=