X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Fbase-files%2Flib%2Far71xx.sh;fp=target%2Flinux%2Far71xx%2Fbase-files%2Flib%2Far71xx.sh;h=05f497fcbf102a4c1769295a94b5846806ef7345;hb=bae927c551fdd91fbc8343071e4b5c44f73eee0d;hp=8f31f3ed70894274f8f40a357f0fec69934f0e99;hpb=b9bd3285c7c6fbc60374b05ac2da9be41ce75651;p=openwrt%2Fstaging%2Fjow.git diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 8f31f3ed70..05f497fcbf 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -585,7 +585,14 @@ ar71xx_board_detect() { ;; *"CPE510/520") name="cpe510" - tplink_pharos_board_detect "$(tplink_pharos_get_model_string | tr -d '\r')" + tplink_pharos_board_detect "$(tplink_pharos_v2_get_model_string)" + case $AR71XX_MODEL in + 'TP-Link CPE510 v2.0') + ;; + *) + tplink_pharos_board_detect "$(tplink_pharos_get_model_string | tr -d '\r')" + ;; + esac ;; *"CPE830") name="cpe830"