ar71xx: enable sysupgrade for the OpenMesh OM2Pv4/-HSv4
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / upgrade / openmesh.sh
index e0269467168ed59818ccd52cd3f0a26e68a3149f..e776f99c1ef90e1ae8a5cd1806d709703e4ba5e9 100644 (file)
@@ -44,9 +44,12 @@ platform_check_image_target_openmesh()
                OM2P)
                        [ "$board" = "om2p" ] && return 0
                        [ "$board" = "om2pv2" ] && return 0
+                       [ "$board" = "om2pv4" ] && return 0
                        [ "$board" = "om2p-lc" ] && return 0
                        [ "$board" = "om2p-hs" ] && return 0
                        [ "$board" = "om2p-hsv2" ] && return 0
+                       [ "$board" = "om2p-hsv3" ] && return 0
+                       [ "$board" = "om2p-hsv4" ] && return 0
                        echo "Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform"
                        return 1
                        ;;
@@ -64,6 +67,7 @@ platform_check_image_target_openmesh()
                        ;;
                MR1750)
                        [ "$board" = "mr1750" ] && return 0
+                       [ "$board" = "mr1750v2" ] && return 0
                        echo "Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform"
                        return 1
                        ;;
@@ -108,7 +112,7 @@ platform_check_image_openmesh()
 
        platform_check_image_target_openmesh "$img_board_target" || return 1
 
-       [ $img_num_files -ne 3 ] && {
+       [ $img_num_files -lt 3 ] && {
                echo "Invalid number of embedded images ($img_num_files). Use the correct image for this platform"
                return 1
        }