xbee-init: fix xbee systemd service not executed on boot

The systemd class adds by default packages named ${PN} to the
SYSTEMD_PACKAGES variable, but in our case the package name is
'${PN}-init', so it needs to be added explicitly.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2020-01-08 15:47:44 +01:00
parent 07f1fa88f2
commit 38014d59de
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ INITSCRIPT_PACKAGES += "${PN}-init"
INITSCRIPT_NAME_${PN}-init = "xbee-init" INITSCRIPT_NAME_${PN}-init = "xbee-init"
INITSCRIPT_PARAMS_${PN}-init = "start 19 2 3 4 5 . stop 21 0 1 6 ." INITSCRIPT_PARAMS_${PN}-init = "start 19 2 3 4 5 . stop 21 0 1 6 ."
SYSTEMD_PACKAGES = "${PN}-init"
SYSTEMD_SERVICE_${PN}-init = "xbee-init.service" SYSTEMD_SERVICE_${PN}-init = "xbee-init.service"
PACKAGE_ARCH = "${MACHINE_ARCH}" PACKAGE_ARCH = "${MACHINE_ARCH}"