This commit is contained in:
Andrew Scheller
2020-10-28 09:47:50 +00:00
committed by GitHub
parent 7f054d6700
commit 435da0f3cb

View File

@@ -150,7 +150,7 @@ applyRecoveryUpdate()
echo "BOOTFS ${BOOTFS}"
# A '.sig' file is created so that recovery.bin can check that the
# EEPROM image has not been created (e.g. SD card corruption).
# EEPROM image has not been corrupted (e.g. SD card corruption).
# Format of the .sig file.
# --
# SHA256\n
@@ -174,12 +174,12 @@ applyRecoveryUpdate()
|| die "Failed to create ${BOOTFS}/pieeprom.sig"
# Appends the update creation timestamp on a newline in pieeprom.sig
# During an self-update mode the bootloader examines the update timestamp
# and # will only update itself if it is newer than than the current update
# During a self-update mode the bootloader examines the update-timestamp
# and will only update itself if it is newer than the current update
# timestamp.
#
# The update-timestamp is indendent of the bootloader version and
# and does not have to be timestamp.
# The update-timestamp is independent of the bootloader version and
# does not have to be timestamp.
echo "ts: $(date -u +%s)" >> "${BOOTFS}/pieeprom.sig"
cp -f "${TMP_EEPROM_IMAGE}" "${BOOTFS}/pieeprom.upd" \