From a8b0e75291d3ec116fbc4b81701252893a621a64 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Thu, 9 Apr 2015 05:36:16 +0000 Subject: [PATCH] brcm47xx: verify also standard TRX images during sysupgrade MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It allows detecting data corruption for plain TRX as well. Signed-off-by: Rafał Miłecki SVN-Revision: 45318 --- target/linux/brcm47xx/base-files/lib/upgrade/platform.sh | 4 ++++ 1 file changed, 4 insertions(+) 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" -- 2.30.2