From 9fb2730af6bbbb7a133441b7c918a7cf3351256b Mon Sep 17 00:00:00 2001 From: dougb Date: Tue, 15 Dec 2009 23:05:16 +0000 Subject: [PATCH] Re-apply the fix from r199029 (MFC from r198162) to allow $name_program to override $command. PR: conf//141642 Submitted by: Petr Lampa git-svn-id: svn://svn.freebsd.org/base/stable/8@200592 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- etc/rc.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.subr b/etc/rc.subr index 04166749e..23811af74 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=${_override_command:-$command} _keywords="start stop restart rcvar $extra_commands" rc_pid= -- 2.45.0