mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
avahi: use systemd.bbclass for avahi-systemd
The original behaviour is to enable the service in the package postinst phase. This patch will enable the service also when building the rootfs, so it fixes the case when no package-management is enabled. It also now delegates systemd enablement to the systemd bbclass, instead of using explicit code in the recipe itself. Signed-off-by: Sander van Grieken <sander@outrightsolutions.nl> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
committed by
Koen Kooi
parent
a81cdc840c
commit
62884020d9
@@ -0,0 +1,9 @@
|
||||
PRINC := "${@int(PRINC) + 1}"
|
||||
|
||||
inherit systemd
|
||||
|
||||
SYSTEMD_PACKAGES = "${PN}-systemd"
|
||||
SYSTEMD_SERVICE = "avahi-daemon.service"
|
||||
SYSTEMD_AUTO_ENABLE = "enable"
|
||||
|
||||
FILES_${PN}-systemd += "${systemd_unitdir}/system/"
|
||||
Reference in New Issue
Block a user