case ${magic:0:3} in
"e00"|\
"e01"|\
- "e80") # Different revisions of the NanoStation?
+ "e80")
model="Ubiquiti NanoStation M"
;;
"e0a")
model="Ubiquiti NanoStation loco M"
;;
- "e1b") # Rocket M5 untested
+ "e1b"|\
+ "e1d")
model="Ubiquiti Rocket M"
;;
"e20"|\
- "e2d") # Bullet M Ti
+ "e2d")
model="Ubiquiti Bullet M"
;;
"e30")
tplink_pharos_board_detect() {
local model_string="$(tplink_pharos_get_model_string | tr -d '\r')"
local oIFS="$IFS"; IFS=":"; set -- $model_string; IFS="$oIFS"
- local model
- case "$1" in
- 'CPE210(TP-LINK|UN|N300-2)')
- model='TP-Link CPE210'
- ;;
- 'CPE220(TP-LINK|UN|N300-2)')
- model='TP-Link CPE220'
- ;;
- 'CPE510(TP-LINK|UN|N300-5)')
- model='TP-Link CPE510'
- ;;
- 'CPE520(TP-LINK|UN|N300-5)')
- model='TP-Link CPE520'
- ;;
- 'EAP120(TP-LINK|UN|N300-2)')
- model='TP-Link EAP120'
- ;;
- esac
+ local model="${1%%\(*}"
- [ -n "$model" ] && AR71XX_MODEL="$model v$2"
+ AR71XX_MODEL="TP-Link $model v$2"
}
gl_inet_board_detect() {
*"Arduino Yun")
name="arduino-yun"
;;
- *AP113)
- name="ap113"
- ;;
*"AP121 reference board")
name="ap121"
;;
*"AP152 reference board")
name="ap152"
;;
- *AP81)
- name="ap81"
- ;;
- *AP83)
- name="ap83"
+ *AP90Q)
+ name="ap90q"
;;
*"Archer C5")
name="archer-c5"
*"CF-E320N v2")
name="cf-e320n-v2"
;;
+ *"CF-E380AC v1")
+ name="cf-e380ac-v1"
+ ;;
+ *"CF-E380AC v2")
+ name="cf-e380ac-v2"
+ ;;
*CF-E520N)
name="cf-e520n"
;;
name="cpe510"
tplink_pharos_board_detect
;;
+ *CPE830)
+ name="cpe830"
+ ;;
+ *CPE870)
+ name="cpe870"
+ ;;
*CR3000)
name="cr3000"
;;
*"PB44 reference board")
name="pb44"
;;
- *PB92)
- name="pb92"
- ;;
*"Qihoo 360 C301")
name="qihoo-c301"
;;
*SOM9331)
name="som9331"
;;
+ *SR3200)
+ name="sr3200"
+ ;;
*TEW-632BRP)
name="tew-632brp"
;;
*WHR-HP-G300N)
name="whr-hp-g300n"
;;
+ *XD3200)
+ name="xd3200"
+ ;;
*Z1)
name="z1"
;;