summaryrefslogtreecommitdiffstats
path: root/meta-networking
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
parentd65d7bd079601033b97dc31a1a7710f9bf2f2b25 (diff)
downloadmeta-openembedded-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')
-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 89669f7a6..f314feef0 100644
--- a/meta-networking/recipes-daemons/radvd/radvd.inc
+++ b/meta-networking/recipes-daemons/radvd/radvd.inc
@@ -38,5 +38,7 @@ USERADD_PACKAGES = "${PN}"
38USERADD_PARAM_${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g nogroup radvd" 38USERADD_PARAM_${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g nogroup radvd"
39 39
40pkg_postinst_${PN} () { 40pkg_postinst_${PN} () {
41 ${sysconfdir}/init.d/populate-volatile.sh update 41 if [ -z "$D" -a -x /etc/init.d/populate-volatile.sh ]; then
42 /etc/init.d/populate-volatile.sh update
43 fi
42} 44}