projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: add support for TP-Link TL-WDR6500 v2
[openwrt/openwrt.git]
/
target
/
linux
/
ar71xx
/
base-files
/
lib
/
upgrade
/
platform.sh
diff --git
a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 79e52fcb19a224d6c041fae26d6494706dfe131f..c1962e4e9fdb54d160a3cf1a15d42d751828305c 100755
(executable)
--- a/
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@
-179,6
+179,7
@@
platform_check_image() {
ap136-010 | \
ap136-020 | \
ap135-020 | \
ap136-010 | \
ap136-020 | \
ap135-020 | \
+ ap147-010 | \
ap96 | \
bxu2000n-2-a1 | \
db120 | \
ap96 | \
bxu2000n-2-a1 | \
db120 | \
@@
-205,8
+206,11
@@
platform_check_image() {
dir-615-c1 | \
dir-615-e1 | \
dir-615-e4 | \
dir-615-c1 | \
dir-615-e1 | \
dir-615-e4 | \
+ dir-615-i1 | \
dir-825-c1 | \
dir-835-a1 | \
dir-825-c1 | \
dir-835-a1 | \
+ dlan-pro-500-wp | \
+ dlan-pro-1200-ac | \
dragino2 | \
epg5000 | \
esr1750 | \
dragino2 | \
epg5000 | \
esr1750 | \
@@
-228,6
+232,7
@@
platform_check_image() {
nanostation-m | \
rocket-m | \
rocket-m-xw | \
nanostation-m | \
rocket-m | \
rocket-m-xw | \
+ rocket-m-ti | \
nanostation-m-xw | \
rw2458n | \
wpj531 | \
nanostation-m-xw | \
rw2458n | \
wpj531 | \
@@
-258,6
+263,7
@@
platform_check_image() {
return 1
;;
return 1
;;
+ bsb | \
dir-825-b1 | \
tew-673gru)
dir825b_check_image "$1" && return 0
dir-825-b1 | \
tew-673gru)
dir825b_check_image "$1" && return 0
@@
-301,12
+307,14
@@
platform_check_image() {
;;
antminer-s1 | \
;;
antminer-s1 | \
+ antminer-s3 | \
archer-c5 | \
archer-c7 | \
el-m150 | \
el-mini | \
gl-inet | \
mc-mac1200r | \
archer-c5 | \
archer-c7 | \
el-m150 | \
el-mini | \
gl-inet | \
mc-mac1200r | \
+ onion-omega | \
oolite | \
smart-300 | \
tl-mr10u | \
oolite | \
smart-300 | \
tl-mr10u | \
@@
-333,6
+341,7
@@
platform_check_image() {
tl-wdr3500 | \
tl-wdr4300 | \
tl-wdr4900-v2 | \
tl-wdr3500 | \
tl-wdr4300 | \
tl-wdr4900-v2 | \
+ tl-wdr6500-v2 | \
tl-wr703n | \
tl-wr710n | \
tl-wr720n-v3 | \
tl-wr703n | \
tl-wr710n | \
tl-wr720n-v3 | \
@@
-350,7
+359,15
@@
platform_check_image() {
tl-wr1043nd | \
tl-wr1043nd-v2 | \
tl-wr2543n)
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
}
echo "Invalid image type."
return 1
}