mediatek: rework and fix mt7622-rfb1-ubi support
[openwrt/staging/mkresin.git] / target / linux / mediatek / mt7622 / base-files / lib / upgrade / platform.sh
index e6afb9547c9b9db0be66433f21a12a6fb20fa50e..bd86a92c7b764fb4a8e2e2376d9b129ccec7029c 100755 (executable)
@@ -34,8 +34,7 @@ platform_do_upgrade() {
                        nand_do_upgrade "$1"
                fi
                ;;
-       linksys,e8450-ubi|\
-       mediatek,mt7622,ubi)
+       linksys,e8450-ubi)
                CI_KERNPART="fit"
                nand_do_upgrade "$1"
                ;;
@@ -47,6 +46,7 @@ platform_do_upgrade() {
                fi
                default_do_upgrade "$1"
                ;;
+       mediatek,mt7622-rfb1-ubi|\
        totolink,a8000ru)
                nand_do_upgrade "$1"
                ;;
@@ -68,6 +68,7 @@ platform_check_image() {
        buffalo,wsr-2533dhp2)
                buffalo_check_image "$board" "$magic" "$1" || return 1
                ;;
+       mediatek,mt7622-rfb1-ubi|\
        totolink,a8000ru)
                nand_do_platform_check "$board" "$1"
                ;;