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:
parent
164a5ffc1a
commit
22ccaeaa76
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue