mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
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>
This commit is contained in:
@@ -38,5 +38,7 @@ USERADD_PACKAGES = "${PN}"
|
|||||||
USERADD_PARAM_${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g nogroup radvd"
|
USERADD_PARAM_${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g nogroup radvd"
|
||||||
|
|
||||||
pkg_postinst_${PN} () {
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user