X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Fbase-files%2Flib%2Fupgrade%2Fplatform.sh;h=673ee4ecd0bbd28ffa0add9ac36ce95f41572af8;hp=1c349fe67df6a5f46113cf2ad59e6c7497f8370e;hb=2ce833060a6ac412d0df362edb950b19da9af04c;hpb=9d76de977142e50753e27144d172fde068fd4936 diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 1c349fe67d..673ee4ecd0 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -179,12 +179,14 @@ platform_check_image() { ap136-010 | \ ap136-020 | \ ap135-020 | \ + ap147-010 | \ ap96 | \ bxu2000n-2-a1 | \ db120 | \ f9k1115v2 |\ hornet-ub | \ - wpj344 | \ + mr12 | \ + mr16 | \ wpj558 | \ zcn-1523h-2 | \ zcn-1523h-5) @@ -197,6 +199,7 @@ platform_check_image() { ap81 | \ ap83 | \ ap132 | \ + cf-e316n-v2 | \ dgl-5500-a1 |\ dhp-1565-a1 |\ dir-505-a1 | \ @@ -204,9 +207,13 @@ platform_check_image() { dir-615-c1 | \ dir-615-e1 | \ dir-615-e4 | \ + dir-615-i1 | \ dir-825-c1 | \ dir-835-a1 | \ + dlan-pro-500-wp | \ + dlan-pro-1200-ac | \ dragino2 | \ + epg5000 | \ esr1750 | \ esr900 | \ ew-dorin | \ @@ -225,9 +232,13 @@ platform_check_image() { loco-m-xw | \ nanostation-m | \ rocket-m | \ + rocket-m-xw | \ + rocket-m-ti | \ nanostation-m-xw | \ rw2458n | \ + wpj531 | \ wndap360 | \ + wpj344 | \ wzr-hp-g300nh2 | \ wzr-hp-g300nh | \ wzr-hp-g450h | \ @@ -253,6 +264,7 @@ platform_check_image() { return 1 ;; + bsb | \ dir-825-b1 | \ tew-673gru) dir825b_check_image "$1" && return 0 @@ -295,12 +307,15 @@ platform_check_image() { return 1 ;; + antminer-s1 | \ + antminer-s3 | \ archer-c5 | \ archer-c7 | \ el-m150 | \ el-mini | \ gl-inet | \ mc-mac1200r | \ + onion-omega | \ oolite | \ smart-300 | \ tl-mr10u | \ @@ -327,6 +342,7 @@ platform_check_image() { tl-wdr3500 | \ tl-wdr4300 | \ tl-wdr4900-v2 | \ + tl-wdr6500-v2 | \ tl-wr703n | \ tl-wr710n | \ tl-wr720n-v3 | \ @@ -344,7 +360,15 @@ platform_check_image() { tl-wr1043nd | \ tl-wr1043nd-v2 | \ tl-wr2543n) - [ "$magic" != "0100" ] && { + local magic_ver="0100" + + case "$board" in + tl-wdr6500-v2) + magic_ver="0200" + ;; + esac + + [ "$magic" != "$magic_ver" ] && { echo "Invalid image type." return 1 } @@ -447,6 +471,19 @@ platform_check_image() { return 1 } +platform_pre_upgrade() { + local board=$(ar71xx_board_name) + + case "$board" in + nbg6716 | \ + r6100 | \ + wndr3700v4 | \ + wndr4300 ) + nand_do_upgrade "$1" + ;; + esac +} + platform_do_upgrade() { local board=$(ar71xx_board_name)