12 lines
203 B
Bash
12 lines
203 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
MAGIC=`head -c +4 $1`
|
||
|
|
||
|
if [ "x$MAGIC" != "xTRZR" ]; then
|
||
|
echo "Missing magic characters 'TRZR', invalid firmware"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
echo "Firmware fingerprint:"
|
||
|
tail -c +257 $1 | sha256sum
|