From d19530c69337ad0b378d8d74ae7fa6185c95aeb6 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sun, 20 Jul 2014 17:30:17 +0000 Subject: ar71xx: Add UBNT airGateway support This patch adds support for the Ubiquiti Networks airGateway. Based in part on code posted by David Hutchison on openwrt-devel: https://lists.openwrt.org/pipermail/openwrt-devel/2013-December/023035.html Signed-off-by: Matthew Reeve SVN-Revision: 41766 --- target/linux/ar71xx/base-files/etc/diag.sh | 3 +++ target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 3 +++ target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + 4 files changed, 10 insertions(+) (limited to 'target/linux/ar71xx/base-files') 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" diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 23cee9acb7..ef7240efdb 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -229,6 +229,9 @@ ar71xx_board_detect() { *"Oolite V1.0") name="oolite" ;; + *"AirGateway") + name="airgateway" + ;; *"AirRouter") name="airrouter" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index fe627ab4f4..e25410bc9f 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -186,6 +186,7 @@ platform_check_image() { tew-712br | \ tew-732br | \ wrt400n | \ + airgateway | \ airrouter | \ bullet-m | \ nanostation-m | \ -- cgit v1.2.3