[oe-commits] Chen Qi : radvd: fix pkg_postinst
git at git.openembedded.org
git at git.openembedded.org
Fri Nov 1 14:11:37 UTC 2013
Module: meta-openembedded.git
Branch: master
Commit: 1ec32c102f48f26f18b4fa4b9ede064928e8a01e
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=1ec32c102f48f26f18b4fa4b9ede064928e8a01e
Author: Chen Qi <Qi.Chen at windriver.com>
Date: Thu Oct 31 14:29:43 2013 +0800
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 at windriver.com>
Signed-off-by: Joe MacDonald <joe at deserted.net>
---
meta-networking/recipes-daemons/radvd/radvd.inc | 4 +++-
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 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
}
More information about the Openembedded-commits
mailing list