summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-init
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postinst-init')
-rw-r--r--autoscripts/postinst-init4
1 files changed, 4 insertions, 0 deletions
diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init
new file mode 100644
index 00000000..2430b2c0
--- /dev/null
+++ b/autoscripts/postinst-init
@@ -0,0 +1,4 @@
+if [ -x "/etc/init.d/#SCRIPT#" ]; then
+ update-rc.d #SCRIPT# #INITPARMS# >/dev/null
+ invoke-rc.d #SCRIPT# start || #ERROR_HANDLER#
+fi