summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-init
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postinst-init')
-rw-r--r--autoscripts/postinst-init10
1 files changed, 8 insertions, 2 deletions
diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init
index 976c6b34..b5bd7a57 100644
--- a/autoscripts/postinst-init
+++ b/autoscripts/postinst-init
@@ -1,2 +1,8 @@
-update-rc.d #SCRIPT# #INITPARMS# >/dev/null
-/etc/init.d/#SCRIPT# start
+if [ -x "/etc/init.d/#SCRIPT#" ]; then
+ update-rc.d #SCRIPT# #INITPARMS# >/dev/null
+ if [ -x /usr/sbin/invoke-rc.d ]; then
+ invoke-rc.d #SCRIPT# start
+ else
+ /etc/init.d/#SCRIPT# start
+ fi
+fi