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