diff options
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/brcm47xx/base-files/lib/upgrade/platform.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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" |