Joey Hess writes ("Re: Bug#447611: update-initramfs triggerisation"):
> Ian Jackson wrote:
> Content-Description: message body text
> > + && test x"$DPKG_MAINTSCRIPT_PACKAGE" != x \
>
> I take it that this is a magic flag variable set by dpkg when running a
> postinst?
Yes. This is a new feature introduced in the triggers patch, so I'm
afraid you can't rely on it yet in general.
Ian.