dualboot: pass pubkey to swupdate when available

Signed-off-by: David Escalona <david.escalona@digi.com>
This commit is contained in:
David Escalona 2023-09-15 09:44:14 +02:00 committed by Francisco Gil
parent d6a42cf8e5
commit 7001c87e16
1 changed files with 5 additions and 1 deletions

View File

@ -173,7 +173,11 @@ update_emmc() {
echo ""
# Execute the update.
swupdate ${VERBOSE} -i "${UPDATE_FILE}" -e "${IMAGE_SET}"
if [ -f "${PUBLIC_KEY}" ]; then
swupdate ${VERBOSE} -i "${UPDATE_FILE}" -e "${IMAGE_SET}" -k "${PUBLIC_KEY}"
else
swupdate ${VERBOSE} -i "${UPDATE_FILE}" -e "${IMAGE_SET}"
fi
}
update_nand() {