]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-init-norestart
r487: * dh_movefiles: Typo, Closes: #106532
[debhelper.git] / autoscripts / postinst-init-norestart
index 05357d072e46a34b2dd9aa0d9a1e382b9d15b5d2..4f1c63f93a12c3060c25e90128b1b80721f59114 100644 (file)
@@ -1 +1,8 @@
-update-rc.d #SCRIPT# #INITPARMS# >/dev/null
+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
+                       /etc/init.d/#SCRIPT# start
+               fi
+       fi
+fi