Craig Sanders wrote...

> It's arguable whether that **requires** the existence of a file/dir in
> order to function, it's just using the existence to decide which method
> to use for loading the module(s).

Yes but but still I'd like to make the postinst behaviour as robust as
possible. Espescially since I've screwed up the first time.

> the next best method (slower, from calling dpkg-query and grep, but just
> as certain if not more so) would be to use dpkg-query:
(...)

Actually, the test should be "Is pid1 systemd"? So I will rather check
either /proc/1/exe or /run/systemd/system - the latter seems to be the
better choice. (About /proc/, that should work pptpd is Architecture:
linux-any so I don't have to care for bsd and hurd.)

    Christoph

Attachment: signature.asc
Description: Digital signature

Reply via email to