X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Fbase-files%2Flib%2Far71xx.sh;h=9f41a2b7e814431581177af68ae20ed835140975;hb=0dbced8a484faeb8bea0c29a35c1b0f6d58dbf4c;hp=645c5d9a506becf263c72a00770595cc471ec6e2;hpb=a34db67857c13a8d05dca71721f3fba7b961e034;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 645c5d9a50..9f41a2b7e8 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -38,7 +38,7 @@ wndr3700_board_detect() { ;; "33373031") # Use awk to remove everything after the first zero byte - model="$(ar71xx_get_mtd_offset_size_format art 41 32 %c | awk 'BEGIN{FS="[[:cntrl:]]"} {print $1; exit}')" + model="$(ar71xx_get_mtd_offset_size_format art 41 32 %c | LC_CTYPE=C awk -v 'FS=[^[:print:]]' '{print $1; exit}')" case $model in $'\xff'*) if [ "${model:24:1}" = 'N' ]; then @@ -107,6 +107,12 @@ tplink_board_detect() { "015300"*) model="EasyLink EL-MINI" ;; + "04440001"*) + model="BITMAIN ANTMINER S1" + ;; + "04440003"*) + model="BITMAIN ANTMINER S3" + ;; "120000"*) model="MERCURY MAC1200R" ;; @@ -151,6 +157,10 @@ tplink_board_detect() { ;; "083000"*) model="TP-Link TL-WA830RE" + + if [ "$hwver" = 'v10' ]; then + hwver='v1' + fi ;; "084100"*) model="TP-Link TL-WR841N/ND" @@ -211,6 +221,9 @@ tplink_board_detect() { "342000"*) model="TP-Link TL-MR3420" ;; + "332000"*) + model="TP-Link TL-WDR3320" + ;; "350000"*) model="TP-Link TL-WDR3500" ;; @@ -230,6 +243,9 @@ tplink_board_detect() { "49000002") model="TP-Link TL-WDR4900" ;; + "65000002") + model="TP-Link TL-WDR6500" + ;; "453000"*) model="MERCURY MW4530R" ;; @@ -352,6 +368,12 @@ ar71xx_board_detect() { *"AP135-020 reference board") name="ap135-020" ;; + *"AP143 reference board") + name="ap143" + ;; + *"AP147-010 reference board") + name="ap147-010" + ;; *AP81) name="ap81" ;; @@ -373,6 +395,9 @@ ar71xx_board_detect() { *CAP4200AG) name="cap4200ag" ;; + *"COMFAST CF-E316N v2") + name="cf-e316n-v2" + ;; *"CPE210/220/510/520") name="cpe510" tplink_pharos_board_detect @@ -398,6 +423,9 @@ ar71xx_board_detect() { *"DIR-615 rev. E4") name="dir-615-e4" ;; + *"DIR-615 rev. I1") + name="dir-615-i1" + ;; *"DIR-825 rev. B1") name="dir-825-b1" ;; @@ -407,6 +435,12 @@ ar71xx_board_detect() { *"DIR-835 rev. A1") name="dir-835-a1" ;; + *"dLAN pro 500 Wireless+") + name="dlan-pro-500-wp" + ;; + *"dLAN pro 1200+ WiFi ac") + name="dlan-pro-1200-ac" + ;; *"Dragino v2") name="dragino2" ;; @@ -426,6 +460,9 @@ ar71xx_board_detect() { name="gl-inet" gl_inet_board_detect ;; + *"EnGenius EPG5000") + name="epg5000" + ;; *"EnGenius ESR1750") name="esr1750" ;; @@ -471,9 +508,18 @@ ar71xx_board_detect() { *"MAC1200R") name="mc-mac1200r" ;; + *MR12) + name="mr12" + ;; + *MR16) + name="mr16" + ;; *MR600v2) name="mr600v2" ;; + *MR1750) + name="mr1750" + ;; *MR600) name="mr600" ;; @@ -525,6 +571,9 @@ ar71xx_board_detect() { *"OM5P AN") name="om5p-an" ;; + *"Onion Omega") + name="onion-omega" + ;; *PB42) name="pb42" ;; @@ -621,6 +670,9 @@ ar71xx_board_detect() { *"Rocket M") name="rocket-m" ;; + *"Rocket M TI") + name="rocket-m-ti" + ;; *"Rocket M XW") name="rocket-m-xw" ;; @@ -636,6 +688,9 @@ ar71xx_board_detect() { *"SMART-300") name="smart-300" ;; + "Smart Electronics Black Swift board"*) + name="bsb" + ;; *TEW-632BRP) name="tew-632brp" ;; @@ -717,6 +772,9 @@ ar71xx_board_detect() { *"TL-WA901ND v3") name="tl-wa901nd-v3" ;; + *"TL-WDR3320 v2") + name="tl-wdr3320-v2" + ;; *"TL-WDR3500") name="tl-wdr3500" ;; @@ -726,6 +784,9 @@ ar71xx_board_detect() { *"TL-WDR4900 v2") name="tl-wdr4900-v2" ;; + *"TL-WDR6500 v2") + name="tl-wdr6500-v2" + ;; *TL-WR741ND) name="tl-wr741nd" ;; @@ -759,7 +820,7 @@ ar71xx_board_detect() { *"TL-WR710N v1") name="tl-wr710n" ;; - *"TL-WR720N v3") + *"TL-WR720N"*) name="tl-wr720n-v3" ;; *"TL-MR10U") @@ -807,6 +868,9 @@ ar71xx_board_detect() { *WPJ344) name="wpj344" ;; + *WPJ531) + name="wpj531" + ;; *WPJ558) name="wpj558" ;;