diff options
Diffstat (limited to 'target/linux/ar71xx/base-files/lib')
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/ar71xx.sh | 6 | ||||
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 11 |
2 files changed, 16 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 359a5a61ee..e1f345eb93 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -240,6 +240,9 @@ tplink_board_detect() { "49000002") model="TP-Link TL-WDR4900" ;; + "65000002") + model="TP-Link TL-WDR6500" + ;; "453000"*) model="MERCURY MW4530R" ;; @@ -769,6 +772,9 @@ ar71xx_board_detect() { *"TL-WDR4900 v2") name="tl-wdr4900-v2" ;; + *"TL-WDR6500 v2") + name="tl-wdr6500-v2" + ;; *TL-WR741ND) name="tl-wr741nd" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index fb9add6877..c1962e4e9f 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -341,6 +341,7 @@ platform_check_image() { tl-wdr3500 | \ tl-wdr4300 | \ tl-wdr4900-v2 | \ + tl-wdr6500-v2 | \ tl-wr703n | \ tl-wr710n | \ tl-wr720n-v3 | \ @@ -358,7 +359,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 } |