ramips: add image checks
[openwrt/staging/wigyori.git] / target / linux / ramips / base-files / lib / upgrade / platform.sh
index 8160f5d3887971bd234879334480db000260517c..e2ab3a643e5ed6e9edb3ab523fe58210327d5a77 100755 (executable)
@@ -16,6 +16,7 @@ platform_check_image() {
        a5-v11|\
        ai-br100|\
        air3gii|\
+       alfa-network,ac1200rm|\
        all0239-3g|\
        all0256n-4M|\
        all0256n-8M|\
@@ -263,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" ] && {
@@ -274,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" ] && {