aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-07-20 17:30:17 +0000
committerJohn Crispin <blogic@openwrt.org>2014-07-20 17:30:17 +0000
commit3d8813c4eefffdc55da9fc0005dbc6f88b39fcf8 (patch)
tree94132b45abdc5ca8a9301723e615471535f7b10b /target/linux/ar71xx/base-files/etc
parent7e34703827f549da9e9e3122300f680bb72ed743 (diff)
downloadmaster-187ad058-3d8813c4eefffdc55da9fc0005dbc6f88b39fcf8.tar.gz
master-187ad058-3d8813c4eefffdc55da9fc0005dbc6f88b39fcf8.tar.bz2
master-187ad058-3d8813c4eefffdc55da9fc0005dbc6f88b39fcf8.zip
ar71xx: Add UBNT airGateway support
This patch adds support for the Ubiquiti Networks airGateway. Based in part on code posted by David Hutchison <dhutchison@bluemesh.net> on openwrt-devel: https://lists.openwrt.org/pipermail/openwrt-devel/2013-December/023035.html Signed-off-by: Matthew Reeve <mreeve@tenxnetworks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41766 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/01_leds3
2 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 69590027d8..d94d410863 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -229,6 +229,9 @@ get_status_led() {
uap-pro)
status_led="ubnt:white:dome"
;;
+ airgateway)
+ status_led="ubnt:white:status"
+ ;;
whr-g301n | \
whr-hp-g300n | \
whr-hp-gn | \
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index b1477ae070..f7757de0f3 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -9,6 +9,9 @@
board=$(ar71xx_board_name)
case "$board" in
+airgateway)
+ ucidef_set_led_wlan "wlan" "WLAN" "ubnt:blue:wlan" "phy0tpt"
+ ;;
alfa-nx)
ucidef_set_led_netdev "wan" "WAN" "alfa:green:led_2" "eth0"
ucidef_set_led_netdev "lan" "LAN" "alfa:green:led_3" "eth1"