mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
avahi-daemon: fix missing init script links
* update-rc.d wasn't executed when the rootfs was built, because pkg_postinst_avahi-daemon exited early. It wasn't run either on first boot, because the exit code was 0. (From OE-Core rev: c084759d7f69b751e1ed3ef79d686389d867f248) Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
04d6aa1069
commit
6004dc8906
@@ -14,7 +14,7 @@ SECTION = "network"
|
|||||||
# python scripts are under GPLv2+
|
# python scripts are under GPLv2+
|
||||||
LICENSE = "GPLv2+ & LGPLv2.1+"
|
LICENSE = "GPLv2+ & LGPLv2.1+"
|
||||||
|
|
||||||
INC_PR = "r1"
|
INC_PR = "r2"
|
||||||
|
|
||||||
DEPENDS = "expat libcap libdaemon dbus glib-2.0"
|
DEPENDS = "expat libcap libdaemon dbus glib-2.0"
|
||||||
|
|
||||||
@@ -123,17 +123,16 @@ do_install_avahi-autoipd() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# At the time the postinst runs, dbus might not be setup so only restart if running
|
# At the time the postinst runs, dbus might not be setup so only restart if running
|
||||||
|
# Don't exit early, because update-rc.d needs to run subsequently.
|
||||||
|
|
||||||
pkg_postinst_avahi-daemon () {
|
pkg_postinst_avahi-daemon () {
|
||||||
if [ "x$D" != "x" ]; then
|
if [ -z "$D" ]; then
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
DBUSPID=`pidof dbus-daemon`
|
DBUSPID=`pidof dbus-daemon`
|
||||||
|
|
||||||
if [ "x$DBUSPID" != "x" ]; then
|
if [ "x$DBUSPID" != "x" ]; then
|
||||||
/etc/init.d/dbus-1 force-reload
|
/etc/init.d/dbus-1 force-reload
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst_avahi-autoipd () {
|
pkg_postinst_avahi-autoipd () {
|
||||||
|
|||||||
Reference in New Issue
Block a user