From: Manoj Srivastava Date: Thu, 16 Jun 2005 05:43:21 +0000 (+0000) Subject: fixed detection of invoke-rc.d's existence, closes: #218530 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=25482c1e0a77d7cdaef65d5ff33719d77ffba27e;p=debian%2Fdebian-policy.git fixed detection of invoke-rc.d's existence, closes: #218530 Author: joy Date: 2003/11/02 13:11:30 fixed detection of invoke-rc.d's existence, closes: #218530 git-archimport-id: srivasta@debian.org--etch/debian-policy--devel--3.0--patch-258 --- diff --git a/policy.sgml b/policy.sgml index cd600ad..b0decfb 100644 --- a/policy.sgml +++ b/policy.sgml @@ -5583,11 +5583,11 @@ test -f program-executed-later-in-script || exit 0 <action> in their postinst and prerm scripts to: - if [ -x /usr/sbin/invoke-rc.d ] ; then + if command -v invoke-rc.d >/dev/null 2>&1; then invoke-rc.d package <action> - else - /etc/init.d/package <action> - fi + else + /etc/init.d/package <action> + fi