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 <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2023-01-03 13:09:52 +01:00
parent 164a5ffc1a
commit 22ccaeaa76
1 changed files with 1 additions and 1 deletions

View File

@ -31,6 +31,6 @@ do_install:append() {
pkg_postinst_ontarget:${PN}() { pkg_postinst_ontarget:${PN}() {
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','false','true',d)}; then 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 fi
} }