dualboot: pass pubkey to swupdate when available
Signed-off-by: David Escalona <david.escalona@digi.com>
This commit is contained in:
parent
d6a42cf8e5
commit
7001c87e16
|
|
@ -173,7 +173,11 @@ update_emmc() {
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Execute the update.
|
# 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() {
|
update_nand() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue