gumd: Prevent running ldconfig if not on system 44/57244/3
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Mon, 18 Jan 2016 10:19:08 +0000 (11:19 +0100)
committerPhilippe Coval <philippe.coval@osg.samsung.com>
Wed, 20 Jan 2016 09:34:30 +0000 (10:34 +0100)
commit0dbe39ac0ee3899efb15608feab593fb4752b88c
tree42f839056c6b27a033d416187b743414e0282ef3
parent97c5e4b1aa22df2ce78887ec1e31227e83505219
gumd: Prevent running ldconfig if not on system

Without this change,
bitbake tries to run ldconfig on host instead
and then complains (but not fail !) about permission issue like :

   /sbin/ldconfig.real: \
   Can't create temporary cache file /etc/ld.so.cache~: \
   Permission denied

Note, "or condition" is prefered because of shell's -e option.

Change-Id: Ie211954bfb1753a8fa7d450caa653c1e03a99d63
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
meta-tizen-common-base/recipes-security/gumd/gumd.inc