aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorHenryk Heisig <hyniu@o2.pl>2016-10-06 23:46:38 +0200
committerJohn Crispin <john@phrozen.org>2016-10-18 09:18:55 +0200
commitf5aa4590433638e6b2c191412fa802ae5a64cdc9 (patch)
tree731058742aa98d85eec3184545fae87374ba8492 /target/linux/ar71xx/base-files
parent6bb11d52f3ae8ce8aa0a270c6ae305809af8b7ce (diff)
downloadupstream-f5aa4590433638e6b2c191412fa802ae5a64cdc9.tar.gz
upstream-f5aa4590433638e6b2c191412fa802ae5a64cdc9.tar.bz2
upstream-f5aa4590433638e6b2c191412fa802ae5a64cdc9.zip
ar71xx: Add support to TP-Link EAP120
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh7
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh3
4 files changed, 13 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index f720767fbb..b7b91d0ad8 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -66,6 +66,7 @@ ar71xx_setup_interfaces()
bullet-m|\
c-55|\
cap4200ag|\
+ eap120|\
eap300v2|\
eap7660d|\
el-mini|\
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 0d069ec88c..7a40f44e4a 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -130,6 +130,9 @@ get_status_led() {
oolite)
status_led="$board:red:system"
;;
+ eap120)
+ status_led="$(ar71xx_board_name):green:system"
+ ;;
eap300v2)
status_led="engenius:blue:power"
;;
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 940c1c95de..1492b50774 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -361,6 +361,9 @@ tplink_pharos_board_detect() {
'CPE520(TP-LINK|UN|N300-5)')
model='TP-Link CPE520'
;;
+ 'EAP120(TP-LINK|UN|N300-2)')
+ model='TP-Link EAP120'
+ ;;
esac
[ -n "$model" ] && AR71XX_MODEL="$model v$2"
@@ -563,6 +566,10 @@ ar71xx_board_detect() {
*"Domino Pi")
name="gl-domino"
;;
+ *"EAP120")
+ name="eap120"
+ tplink_pharos_board_detect
+ ;;
*"EAP300 v2")
name="eap300v2"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 7c554e3f29..35e9bb4391 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -433,7 +433,8 @@ platform_check_image() {
return $?
;;
cpe210|\
- cpe510)
+ cpe510|\
+ eap120)
tplink_pharos_check_image "$1" && return 0
return 1
;;