Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bb-show-serial.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ print_serial () {
fail "i2c eeprom file not found in sysfs."
fi

SERIAL=$(hexdump -e '8/1 "%c"' "${EEPROM}" -s 16 -n 12 2>&1)
SERIAL=$(hexdump -e '8/1 "%c"' "${EEPROM}" -s 12 -n 16 2>&1)

if [ "${SERIAL}" = "${SERIAL#*BB}" ]; then
fail "failed to extract serial number from i2c eeprom: " "${SERIAL}"
Expand Down