From 22ccaeaa76db01b947445706719c2b3ea3c51efd Mon Sep 17 00:00:00 2001 From: Isaac Hermida Date: Tue, 3 Jan 2023 13:09:52 +0100 Subject: [PATCH] swupdate: change logic for service The variable dualboot might not be defined or well have an invalid value. Just keep the service running if it is a dualboot model. https://onedigi.atlassian.net/browse/DEL-8264 Signed-off-by: Isaac Hermida --- .../recipes-support/swupdate/swupdate_2022.05.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend b/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend index 6c38638a2..ca0286d9f 100644 --- a/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend +++ b/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend @@ -31,6 +31,6 @@ do_install:append() { pkg_postinst_ontarget:${PN}() { if ${@bb.utils.contains('DISTRO_FEATURES','systemd','false','true',d)}; then - [ "$(fw_printenv -n dualboot 2>/dev/null)" = "no" ] && update-rc.d -f swupdate remove + [ "$(fw_printenv -n dualboot 2>/dev/null)" != "yes" ] && update-rc.d -f swupdate remove fi }