diff options
Diffstat (limited to '')
-rw-r--r-- | autoscripts/postrm-init | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/autoscripts/postrm-init b/autoscripts/postrm-init new file mode 100644 index 0000000..6b81341 --- /dev/null +++ b/autoscripts/postrm-init @@ -0,0 +1,6 @@ +if [ "$1" = "remove" ] && [ -x "/etc/init.d/#SCRIPT#" ] ; then + chmod -x "/etc/init.d/#SCRIPT#" >/dev/null || true +fi +if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = "purge" ] ; then + update-rc.d #SCRIPT# remove >/dev/null +fi |