aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/lib/ar71xx.sh
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2016-04-01 07:12:00 +0000
committerJohn Crispin <blogic@openwrt.org>2016-04-01 07:12:00 +0000
commit355aae939cb5cc27ad3f2071641b2fb7cf6807ef (patch)
tree1243d1da5207f9a5f0ada3c11ca9886c0e4d1a3c /target/linux/ar71xx/base-files/lib/ar71xx.sh
parent9746ead2477546e580ee3c0655c50293e68c6742 (diff)
downloadmaster-187ad058-355aae939cb5cc27ad3f2071641b2fb7cf6807ef.tar.gz
master-187ad058-355aae939cb5cc27ad3f2071641b2fb7cf6807ef.tar.bz2
master-187ad058-355aae939cb5cc27ad3f2071641b2fb7cf6807ef.zip
ar71xx: fix the revision of a few TP-LINK devices in AR71XX_MODEL to match labels/image names
Let's not confuse users about the revisions of their devices when we can easily avoid it. Not tested on real hardware. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49107 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files/lib/ar71xx.sh')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 182299802b..6b8550acac 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -137,6 +137,10 @@ tplink_board_detect() {
;;
"071000"*)
model="TP-Link TL-WR710N"
+
+ if [ "$hwid" = '07100002' -a "$mid" = '00000002' ]; then
+ hwver=' v2.1'
+ fi
;;
"072001"*)
model="TP-Link TL-WR720N"
@@ -177,6 +181,10 @@ tplink_board_detect() {
;;
"084100"*)
model="TP-Link TL-WR841N/ND"
+
+ if [ "$hwid" = '08410002' -a "$mid" = '00000002' ]; then
+ hwver=' v1.5'
+ fi
;;
"084200"*)
model="TP-Link TL-WR842N/ND"