summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-init-norestart-invoke
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postinst-init-norestart-invoke')
-rw-r--r--autoscripts/postinst-init-norestart-invoke8
1 files changed, 8 insertions, 0 deletions
diff --git a/autoscripts/postinst-init-norestart-invoke b/autoscripts/postinst-init-norestart-invoke
new file mode 100644
index 00000000..440e8c78
--- /dev/null
+++ b/autoscripts/postinst-init-norestart-invoke
@@ -0,0 +1,8 @@
+if [ -x "/etc/init.d/#SCRIPT#" ]; then
+ update-rc.d #SCRIPT# #INITPARMS# >/dev/null
+ if [ "$1" = "configure" ]; then
+ if [ -z "$2" -o "$2" = "<unknown>" ]; then
+ invoke-rc.d #SCRIPT# start
+ fi
+ fi
+fi