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
<action></example> in their <prgn>postinst</prgn>
and <prgn>prerm</prgn> scripts to:
<example compact="compact">
- if [ -x /usr/sbin/invoke-rc.d ] ; then
+ if command -v invoke-rc.d >/dev/null 2>&1; then
invoke-rc.d <var>package</var> <action>
- else
- /etc/init.d/<var>package</var> <action>
- fi
+ else
+ /etc/init.d/<var>package</var> <action>
+ fi
</example>
</p>