From 1ec32c102f48f26f18b4fa4b9ede064928e8a01e Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Thu, 31 Oct 2013 14:29:43 +0800 Subject: 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 Signed-off-by: Joe MacDonald --- meta-networking/recipes-daemons/radvd/radvd.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta-networking/recipes-daemons/radvd') 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 } -- cgit 1.2.3-korg