projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
target: ar71xx: add support for COMFAST CF-E316N v2 board
[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 3dbd91cfc7e9fec69d8973542754faa0ce12bea9..673ee4ecd0bbd28ffa0add9ac36ce95f41572af8 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 | \
@@
-198,6
+199,7
@@
platform_check_image() {
ap81 | \
ap83 | \
ap132 | \
ap81 | \
ap83 | \
ap132 | \
+ cf-e316n-v2 | \
dgl-5500-a1 |\
dhp-1565-a1 |\
dir-505-a1 | \
dgl-5500-a1 |\
dhp-1565-a1 |\
dir-505-a1 | \
@@
-205,9
+207,13
@@
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 | \
dragino2 | \
+ epg5000 | \
esr1750 | \
esr900 | \
ew-dorin | \
esr1750 | \
esr900 | \
ew-dorin | \
@@
-227,8
+233,10
@@
platform_check_image() {
nanostation-m | \
rocket-m | \
rocket-m-xw | \
nanostation-m | \
rocket-m | \
rocket-m-xw | \
+ rocket-m-ti | \
nanostation-m-xw | \
rw2458n | \
nanostation-m-xw | \
rw2458n | \
+ wpj531 | \
wndap360 | \
wpj344 | \
wzr-hp-g300nh2 | \
wndap360 | \
wpj344 | \
wzr-hp-g300nh2 | \
@@
-256,6
+264,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
@@
-298,12
+307,15
@@
platform_check_image() {
return 1
;;
return 1
;;
+ 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 | \
@@
-330,6
+342,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 | \
@@
-347,7
+360,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
}