cccs: dualboot: set by default on the fly to true

To work in a dualboot memory layout out of the box, the most
common use case of the firmware update through the cloud should
be on the fly because in nand platforms there is not enough
memory to keep the update file in the system.

https://onedigi.atlassian.net/browse/DEL-8305

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
This commit is contained in:
Francisco Gil 2024-01-11 12:11:26 +01:00
parent 2c2c6e3896
commit 0817a4de93
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# Copyright (C) 2017-2023, Digi International Inc. # Copyright (C) 2017-2024, Digi International Inc.
SUMMARY = "Digi's ConnectCore Cloud services" SUMMARY = "Digi's ConnectCore Cloud services"
SECTION = "libs" SECTION = "libs"
@ -57,9 +57,10 @@ do_install:append:ccimx6ul() {
} }
pkg_postinst_ontarget:${PN}() { pkg_postinst_ontarget:${PN}() {
# If dualboot is enabled, change the CCCSD download path on the first boot # If dualboot is enabled, change the CCCSD download path and set on the fly to yes on the first boot
if [ "$(fw_printenv -n dualboot 2>/dev/null)" = "yes" ]; then if [ "$(fw_printenv -n dualboot 2>/dev/null)" = "yes" ]; then
sed -i "/firmware_download_path = \/mnt\/update/c\firmware_download_path = \/home\/root" /etc/cccs.conf sed -i "/firmware_download_path = \/mnt\/update/c\firmware_download_path = \/home\/root" /etc/cccs.conf
sed -i "/on_the_fly = false/c\on_the_fly = true" /etc/cccs.conf
fi fi
} }