mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-29 19:08:12 +00:00
13 lines
232 B
Bash
Executable File
13 lines
232 B
Bash
Executable File
#!/bin/bash
|
|
|
|
MAGIC=`head -c +4 $1`
|
|
|
|
if [ "x$MAGIC" != "xTRZR" ]; then
|
|
echo "Missing magic characters 'TRZR', invalid firmware"
|
|
exit 1
|
|
fi
|
|
|
|
echo "---------------------"
|
|
echo "Firmware fingerprint:"
|
|
tail -c +257 $1 | sha256sum
|