]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-init
r1658: * dh_installxfonts(1): fix link to policy. Closes: #231918
[debhelper.git] / autoscripts / postinst-init
index 976c6b3403065cb1e9e37fbd16d63c1d0cb9c32a..b5bd7a5798870f5e7d311e1ed3f5867852b9df6c 100644 (file)
@@ -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