mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00: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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45318 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user