aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/radvd
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-10-31 14:29:43 +0800
committerJoe MacDonald <joe@deserted.net>2013-10-31 13:00:48 -0400
commit1ec32c102f48f26f18b4fa4b9ede064928e8a01e (patch)
treecdfcdeb916b17cb75bf9fcc7c22ac0da87097d73 /meta-networking/recipes-daemons/radvd
parentd65d7bd079601033b97dc31a1a7710f9bf2f2b25 (diff)
downloadmeta-openembedded-contrib-1ec32c102f48f26f18b4fa4b9ede064928e8a01e.tar.gz
radvd: fix pkg_postinst
`/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.Chen@windriver.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
Diffstat (limited to 'meta-networking/recipes-daemons/radvd')
-rw-r--r--meta-networking/recipes-daemons/radvd/radvd.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-networking/recipes-daemons/radvd/radvd.inc b/meta-networking/recipes-daemons/radvd/radvd.inc
index 89669f7a6d..f314feef0b 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
}