ramips: add image checks
[openwrt/staging/wigyori.git] / target / linux / ramips / base-files / lib / upgrade / platform.sh
index fb5e600f35ded8c5dfa9450c857abf900daec851..e2ab3a643e5ed6e9edb3ab523fe58210327d5a77 100755 (executable)
@@ -16,6 +16,7 @@ platform_check_image() {
        a5-v11|\
        ai-br100|\
        air3gii|\
+       alfa-network,ac1200rm|\
        all0239-3g|\
        all0256n-4M|\
        all0256n-8M|\
@@ -81,7 +82,6 @@ platform_check_image() {
        kn_rf|\
        kng_rc|\
        linkits7688|\
-       linkits7688d|\
        m2m|\
        m3|\
        m4-4M|\
@@ -108,6 +108,7 @@ platform_check_image() {
        nbg-419n|\
        nbg-419n2|\
        newifi-d1|\
+       d-team,newifi-d2|\
        nixcore-x1-8M|\
        nixcore-x1-16M|\
        nw718|\
@@ -130,6 +131,7 @@ platform_check_image() {
        rt-ac51u|\
        rt-g32-b1|\
        rt-n10-plus|\
+       rt-n12p|\
        rt-n13u|\
        rt-n14u|\
        rt-n15|\
@@ -150,6 +152,7 @@ platform_check_image() {
        ur-326n4g|\
        ur-336un|\
        v22rw-2x2|\
+       vonets,var11n-300|\
        vocore-8M|\
        vocore-16M|\
        vocore2|\
@@ -202,6 +205,7 @@ platform_check_image() {
        zbt-wa05|\
        zbt-we1326|\
        zbt-we2026|\
+       zbtlink,zbt-we3526|\
        zbt-we826-16M|\
        zbt-we826-32M|\
        zbt-wg2626|\
@@ -237,6 +241,7 @@ platform_check_image() {
        c20i|\
        c50|\
        mr200|\
+       tplink,tl-mr3420-v5|\
        tl-wr840n-v4|\
        tl-wr840n-v5|\
        tl-wr841n-v13)
@@ -259,9 +264,11 @@ platform_check_image() {
                ;;
        hc5962|\
        mir3g|\
-       r6220)
-               # these boards use metadata images
-               return 0
+       r6220|\
+       ubnt-erx|\
+       ubnt-erx-sfp)
+               nand_do_platform_check "$board" "$1"
+               return $?;
                ;;
        re350-v1)
                [ "$magic" != "01000000" ] && {
@@ -270,11 +277,6 @@ platform_check_image() {
                }
                return 0
                ;;
-       ubnt-erx|\
-       ubnt-erx-sfp)
-               nand_do_platform_check "$board" "$1"
-               return $?;
-               ;;
        wcr-1166ds|\
        wsr-1166)
                [ "$magic" != "48445230" ] && {