otrx: change command line API to start with a mode
[openwrt/staging/lynxis.git] / target / linux / brcm47xx / base-files / lib / upgrade / platform.sh
index 9b21e319bb6e50de6fe44cfc7890e4eb8715ade0..83d3dee6254bb396206c263aec7be718660f1f7e 100644 (file)
@@ -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