From: Chen Qi <qi.c...@windriver.com>

`/etc/init.d/populate-volatile.sh update' only needs to run in case
of an on-target installation. And it should have a prerequisite that
the script is executable.

Signed-off-by: Chen Qi <qi.c...@windriver.com>
---
 meta-networking/recipes-daemons/radvd/radvd.inc |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta-networking/recipes-daemons/radvd/radvd.inc 
b/meta-networking/recipes-daemons/radvd/radvd.inc
index 89669f7..f314fee 100644
--- a/meta-networking/recipes-daemons/radvd/radvd.inc
+++ b/meta-networking/recipes-daemons/radvd/radvd.inc
@@ -38,5 +38,7 @@ USERADD_PACKAGES = "${PN}"
 USERADD_PARAM_${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g 
nogroup radvd"
 
 pkg_postinst_${PN} () {
-    ${sysconfdir}/init.d/populate-volatile.sh update
+    if [ -z "$D" -a -x /etc/init.d/populate-volatile.sh ]; then
+       /etc/init.d/populate-volatile.sh update
+    fi
 }
-- 
1.7.9.5

_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to