summaryrefslogtreecommitdiff
path: root/autoscripts/prerm-init
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/prerm-init')
-rw-r--r--autoscripts/prerm-init6
1 files changed, 1 insertions, 5 deletions
diff --git a/autoscripts/prerm-init b/autoscripts/prerm-init
index 96d3755..2a8aa4c 100644
--- a/autoscripts/prerm-init
+++ b/autoscripts/prerm-init
@@ -1,7 +1,3 @@
if [ -x "/etc/init.d/#SCRIPT#" ]; then
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER#
- else
- /etc/init.d/#SCRIPT# stop || #ERROR_HANDLER#
- fi
+ invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER#
fi