aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/lib
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ar71xx/base-files/lib')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh17
1 files changed, 12 insertions, 5 deletions
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index b11d2cf926..96ee7550ce 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -98,22 +98,28 @@ ubnt_xm_board_detect() {
[ -z "$model" ] || AR71XX_MODEL="${model}${magic:3:1}"
}
-ubnt_ac_lite_get_mtd_part_magic() {
+ubnt_unifi_ac_get_mtd_part_magic() {
ar71xx_get_mtd_offset_size_format EEPROM 12 2 %02x
}
-ubnt_ac_lite_board_detect() {
+ubnt_unifi_ac_board_detect() {
local model
local magic
- magic="$(ubnt_ac_lite_get_mtd_part_magic)"
+ magic="$(ubnt_unifi_ac_get_mtd_part_magic)"
case ${magic:0:4} in
"e517")
model="Ubiquiti UniFi-AC-LITE"
;;
+ "e537")
+ model="Ubiquiti UniFi-AC-PRO"
+ ;;
"e557")
model="Ubiquiti UniFi-AC-MESH"
;;
+ "e567")
+ model="Ubiquiti UniFi-AC-MESH-PRO"
+ ;;
esac
[ -z "$model" ] || AR71XX_MODEL="${model}"
@@ -1391,10 +1397,11 @@ ar71xx_board_detect() {
;;
*"UniFi-AC-LITE/MESH")
name="unifiac-lite"
- ubnt_ac_lite_board_detect
+ ubnt_unifi_ac_board_detect
;;
- *"UniFi-AC-PRO")
+ *"UniFi-AC-PRO/MESH-PRO")
name="unifiac-pro"
+ ubnt_unifi_ac_board_detect
;;
*"UniFiAP Outdoor")
name="unifi-outdoor"