From 2486063234469e39cce67055c5bd0644213724cf Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 16 Sep 2002 00:05:19 +0000 Subject: r547: * Use invoke-rc.d always now that it is in policy. Fall back to old behavior if invoke-rc.d is not present, so versioned deps on sysvinit are not needed. --- autoscripts/postinst-init | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'autoscripts/postinst-init') diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init index 051f7747..b5bd7a57 100644 --- a/autoscripts/postinst-init +++ b/autoscripts/postinst-init @@ -1,4 +1,8 @@ if [ -x "/etc/init.d/#SCRIPT#" ]; then update-rc.d #SCRIPT# #INITPARMS# >/dev/null - /etc/init.d/#SCRIPT# start + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d #SCRIPT# start + else + /etc/init.d/#SCRIPT# start + fi fi -- cgit v1.2.3