From: Rafał Miłecki Date: Thu, 9 Apr 2015 05:36:16 +0000 (+0000) Subject: brcm47xx: verify also standard TRX images during sysupgrade X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a8b0e75291d3ec116fbc4b81701252893a621a64;p=openwrt%2Fstaging%2Fneocturne.git brcm47xx: verify also standard TRX images during sysupgrade It allows detecting data corruption for plain TRX as well. Signed-off-by: Rafał Miłecki SVN-Revision: 45318 --- diff --git a/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh b/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh index a4918c3513..9b21e319bb 100644 --- a/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh @@ -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"