]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-init-norestart
r450: * Modified to use dpkg-architecture instead of dpkg --print-architecture.
[debhelper.git] / autoscripts / postinst-init-norestart
index 05357d072e46a34b2dd9aa0d9a1e382b9d15b5d2..d57bfc09667bc2a184d4f3c2c4dc6d17cb174c08 100644 (file)
@@ -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