[OE-core] [PATCH 6/9] systemd: allow postinsts to run without systemd being present

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Tue Mar 19 12:09:31 UTC 2013


"Burton, Ross" <ross.burton at intel.com> writes:

>>> +if which systemctl >/dev/null; then
>>
>> check with the shell builtin 'type $prog' is more portable and does not
>> require the external 'which' program.
>
> Tried that (type -p systemctl)

'type systemctl'; 'type -p ...' is a bashism.



Enrico




More information about the Openembedded-core mailing list