ar71xx: add sysupgrade support for OpenMesh OM2P-HSv2
authorJohn Crispin <john@openwrt.org>
Mon, 2 Jun 2014 13:21:38 +0000 (13:21 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 2 Jun 2014 13:21:38 +0000 (13:21 +0000)
Signed-off-by: Marek Lindner <marek@open-mesh.com>
[sven@open-mesh.com: Rebased]
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
SVN-Revision: 40963

target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index 9eac5ef27d2c0825ed92281f42ec94fc6091ec6d..db374259bb99c2e8631de9d42b2be45614ddaf08 100644 (file)
@@ -62,6 +62,7 @@ platform_check_image_openmesh()
                        [ "$board" = "om2pv2" ] && break
                        [ "$board" = "om2p-lc" ] && break
                        [ "$board" = "om2p-hs" ] && break
+                       [ "$board" = "om2p-hsv2" ] && break
                        echo "Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform"
                        return 1
                        ;;
index c7583bae6e5d6157dbff25836543897d4f56f7bd..551d3ce27a37f261fe22d806d90bf890816ac49d 100755 (executable)
@@ -215,6 +215,7 @@ platform_check_image() {
        om2p | \
        om2pv2 | \
        om2p-hs | \
+       om2p-hsv2 | \
        om2p-lc)
                platform_check_image_openmesh "$magic_long" "$1" && return 0
                return 1
@@ -373,6 +374,7 @@ platform_do_upgrade() {
        om2p | \
        om2pv2 | \
        om2p-hs | \
+       om2p-hsv2 | \
        om2p-lc)
                platform_do_upgrade_openmesh "$ARGV"
                ;;