mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +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:
parent
d65d7bd079
commit
1ec32c102f
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user