]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/prerm-init
r1737: releasing version 4.2.30
[debhelper.git] / autoscripts / prerm-init
index 014fa9a082834de74e3abc5287b61c28567b93e1..96d37558e844932ef589e695b31115a402866408 100644 (file)
@@ -1,5 +1,5 @@
 if [ -x "/etc/init.d/#SCRIPT#" ]; 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#