From fd1bdc7c45a590459183f072963ae82e055820fb Mon Sep 17 00:00:00 2001 From: juhosg Date: Sun, 1 Jan 2012 19:30:25 +0000 Subject: ar71xx: add support for the ALFA Network N2/N5 boards git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29635 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/base-files/etc/diag.sh | 3 +++ target/linux/ar71xx/base-files/etc/uci-defaults/leds | 5 +++++ target/linux/ar71xx/base-files/etc/uci-defaults/network | 1 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + 5 files changed, 13 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 6c40f62e8..feed26560 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -30,6 +30,9 @@ status_led_off() { get_status_led() { case $(ar71xx_board_name) in + alfa-nx) + status_led="alfa:green:led_8" + ;; ap81) status_led="ap81:green:status" ;; diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/leds index 0fdab7b2a..c637279fa 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/leds @@ -101,6 +101,11 @@ EOF board=$(ar71xx_board_name) case "$board" in +alfa-nx) + set_led_netdev "wan" "WAN" "alfa:green:led_2" "eth0" + set_led_netdev "lan" "LAN" "alfa:green:led_3" "eth1" + ;; + rb750) set_led_default "act" "act" "rb750:green:act" "1" set_led_netdev "port1" "port1" "rb750:green:port1" "eth1" diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/network b/target/linux/ar71xx/base-files/etc/uci-defaults/network index 48139642e..ba556c107 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/network @@ -114,6 +114,7 @@ wp543) ucidef_set_interface_lan "eth0" ;; +alfa-nx |\ ap83 |\ jwap003 |\ pb42 |\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index ee242a43c..b259b6786 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -118,6 +118,9 @@ ar71xx_board_detect() { *"AirRouter") name="airrouter" ;; + *"ALFA Network N2/N5") + name="alfa-nx" + ;; *ALL0258N) name="all0258n" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 055282840..ec0d03b68 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -77,6 +77,7 @@ platform_check_image() { platform_check_image_all0258n "$1" && return 0 return 1 ;; + alfa-nx | \ ap121 | \ ap121-mini | \ ap96 | \ -- cgit v1.2.3