Ross Burton <ross.burton-ral2jqcrhueavxtiumw...@public.gmane.org>
writes:

> These fragments may be used on a system that didn't actually boot with
> systemd, so check for systemctl first, and don't force systemd to be
> installed.

Checking for existence of programs in scriplets is a bad hack which
might hide real problems and the scriplets are getting more complicated
by this.

Placing scriplets and related files into separate subpackages is a much
cleaner solution.


> +if which systemctl >/dev/null; then

check with the shell builtin 'type $prog' is more portable and does not
require the external 'which' program.



Enrico

_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to