summaryrefslogtreecommitdiff
path: root/autoscripts/prerm-init-norestart
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/prerm-init-norestart')
-rw-r--r--autoscripts/prerm-init-norestart2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoscripts/prerm-init-norestart b/autoscripts/prerm-init-norestart
index 0f64c45..9b63174 100644
--- a/autoscripts/prerm-init-norestart
+++ b/autoscripts/prerm-init-norestart
@@ -1,5 +1,5 @@
if [ -x "/etc/init.d/#SCRIPT#" ] && [ "$1" = remove ]; then
- if [ -x /usr/sbin/invoke-rc.d ] ; 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#