summaryrefslogtreecommitdiffstats
path: root/autoscripts/postrm-init
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postrm-init')
-rw-r--r--autoscripts/postrm-init6
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