From 3cb8bf44e69d5ab72a456b15965b28cc656eadde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Tue, 14 Apr 2015 20:50:46 +0000 Subject: otrx: change command line API to start with a mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will allow adding more modes without options conflict. Signed-off-by: Rafał Miłecki SVN-Revision: 45443 --- target/linux/brcm47xx/base-files/lib/upgrade/platform.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'target/linux/brcm47xx') diff --git a/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh b/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh index 9b21e319bb..83d3dee625 100644 --- a/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/brcm47xx/base-files/lib/upgrade/platform.sh @@ -98,7 +98,7 @@ platform_check_image() { error=1 } - if ! otrx -c "$1" -o "$header_len"; then + if ! otrx check "$1" -o "$header_len"; then echo "No valid TRX firmware in the CHK image" error=1 fi @@ -113,13 +113,13 @@ platform_check_image() { error=1 } - if ! otrx -c "$1" -o 32; then + if ! otrx check "$1" -o 32; then echo "No valid TRX firmware in the CyberTAN image" error=1 fi ;; "trx") - if ! otrx -c "$1"; then + if ! otrx check "$1"; then echo "Invalid (corrupted?) TRX firmware" error=1 fi -- cgit v1.2.3