bcm53xx: detect Seama sysupgrade format
[openwrt/openwrt.git] / target / linux / bcm53xx / base-files / lib / upgrade / platform.sh
index 131f6dd2a71c35c6bdfc207b70a544297d979624..e9a3dc49501862d0844be9b826cdcf7d30b99111 100644 (file)
@@ -26,6 +26,7 @@ platform_expected_image() {
        case "$machine" in
                "netgear,r6250v1")      echo "chk U12H245T00_NETGEAR"; return;;
                "netgear,r6300v2")      echo "chk U12H240T00_NETGEAR"; return;;
+               "netgear,r7000")        echo "chk U12H270T00_NETGEAR"; return;;
                "netgear,r8000")        echo "chk U12H315T00_NETGEAR"; return;;
        esac
 }
@@ -43,6 +44,10 @@ platform_identify() {
                        echo "chk"
                        return
                        ;;
+               "5ea3a417")
+                       echo "seama"
+                       return
+                       ;;
        esac
 
        magic=$(get_magic_long_at "$1" 14)
@@ -94,6 +99,10 @@ platform_check_image() {
                                error=1
                        fi
                ;;
+               "seama")
+                       echo "Seama firmware format is unsupported"
+                       error=1
+               ;;
                "trx")
                        if ! otrx check "$1"; then
                                echo "Invalid (corrupted?) TRX firmware"