]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/prerm-init-norestart
r1737: releasing version 4.2.30
[debhelper.git] / autoscripts / prerm-init-norestart
index 0f64c45eb69e9cfa496f54d13907205f73be1c8c..9b63174811895524939fe2edaa38c0e70488e4b3 100644 (file)
@@ -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#