Skip to content

Commit

Permalink
Merge pull request #467 from hanzyd/master
Browse files Browse the repository at this point in the history
rpi-eeprom-update: Follow links when looking for latest EEPROM
  • Loading branch information
timg236 authored Jan 30, 2023
2 parents bf7419c + d82d08d commit 3c3dadb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpi-eeprom-update
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ BOOTLOADER_UPDATE_VERSION=0
getBootloaderUpdateVersion() {
BOOTLOADER_UPDATE_VERSION=0
match=".*/pieeprom-[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9].bin"
latest="$(find "${FIRMWARE_IMAGE_DIR}/" -maxdepth 1 -type f -size "${EEPROM_SIZE}c" -regex "${match}" | sort -r | head -n1)"
latest="$(find "${FIRMWARE_IMAGE_DIR}/" -maxdepth 1 -type f -follow -size "${EEPROM_SIZE}c" -regex "${match}" | sort -r | head -n1)"
if [ -f "${latest}" ]; then
BOOTLOADER_UPDATE_VERSION=$(strings "${latest}" | grep BUILD_TIMESTAMP | sed 's/.*=//g')
BOOTLOADER_UPDATE_IMAGE="${latest}"
Expand Down

0 comments on commit 3c3dadb

Please sign in to comment.