diff options
Diffstat (limited to 'autoscripts/postinst-init')
-rw-r--r-- | autoscripts/postinst-init | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init new file mode 100644 index 0000000..535b40c --- /dev/null +++ b/autoscripts/postinst-init @@ -0,0 +1,6 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -x "/etc/init.d/#SCRIPT#" ]; then + update-rc.d #SCRIPT# #INITPARMS# >/dev/null + invoke-rc.d #INVOKE_RCD_PARAMS##SCRIPT# start || #ERROR_HANDLER# + fi +fi |