Re: Feaping Creature-ism in core Debian Packages
Julian Gilbey <J.D.Gilbey@qmw.ac.uk> writes:
> > how about:
> > /usr/bin/lpq -V 2>&1 | grep -q 'LPRng'
> You don't know that /usr/bin/lpq exists at this stage, but this idea
> could certainly be used.
I doesn't matter if it doesn't exist.
Iff that command returns 0, then you have lprng's lpq installed.
So the init.d script for lprng just needs something like:
/usr/bin/lpq -V 2>&1 | grep -q 'LPRng' || exit 0
at the top.