Skip to content
Snippets Groups Projects
Commit eb7b11a5 authored by rmilecki's avatar rmilecki
Browse files

brcm47xx: verify also standard TRX images during sysupgrade


It allows detecting data corruption for plain TRX as well.

Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45318 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 6fbcf9be
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment