Fix #211 - hexdump error on older Pi models

This commit is contained in:
Tim Brooks
2020-09-01 23:19:01 +01:00
committed by GitHub
parent 3cdd464d99
commit 18d50d52ca

View File

@@ -268,7 +268,7 @@ getBootloaderUpdateVersion() {
}
checkDependencies() {
BOARD_INFO="$(hexdump -e '1/1 "%02x"' /sys/firmware/devicetree/base/system/linux,revision)"
BOARD_INFO="$(hexdump -ve '1/1 "%02x"' /sys/firmware/devicetree/base/system/linux,revision)"
if [ $(((0x$BOARD_INFO >> 23) & 1)) -ne 0 ] && [ $(((0x$BOARD_INFO >> 12) & 15)) -eq 3 ]; then
echo "BCM2711 detected"
else