mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 19:12:33 +08:00
brcm47xx: verify also standard TRX images during sysupgrade
It allows detecting data corruption for plain TRX as well. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45318
This commit is contained in:
parent
3fad95446a
commit
a8b0e75291
@ -119,6 +119,10 @@ platform_check_image() {
|
||||
fi
|
||||
;;
|
||||
"trx")
|
||||
if ! otrx -c "$1"; then
|
||||
echo "Invalid (corrupted?) TRX firmware"
|
||||
error=1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Invalid image type. Please use only .trx files"
|
||||
|
Loading…
x
Reference in New Issue
Block a user