aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-06-18 10:08:08 +0000
committerJohn Crispin <john@openwrt.org>2014-06-18 10:08:08 +0000
commit23cdea78d845a98d9a8d68c3b831efea908b9d9c (patch)
treea1876519f97eaab98fcafe3d25707e8f1efa6e88 /target/linux
parent4925f710f6951ef39425fca699c65a28aab96076 (diff)
downloadupstream-23cdea78d845a98d9a8d68c3b831efea908b9d9c.tar.gz
upstream-23cdea78d845a98d9a8d68c3b831efea908b9d9c.tar.bz2
upstream-23cdea78d845a98d9a8d68c3b831efea908b9d9c.zip
ar71xx: Fixes for 951Ui-2HnD board support
WAN and LAN are swapped the wrong way around. This patch fixes that by adding the 951Ui-2HnD to ar71xx.sh and the relevant entry in 02_network. This patch also defines the ACT LED as the status LED in diag.sh. Signed-off-by: Matthew Reeve <mreeve@tenxnetworks.com> Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41255
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/02_network4
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
3 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 80f9090b1a..d5063dead5 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -128,6 +128,9 @@ get_status_led() {
rb-912uag-5hpnd)
status_led="rb:green:user"
;;
+ rb-951ui-2hnd)
+ status_led="rb:green:act"
+ ;;
routerstation | routerstation-pro)
status_led="ubnt:green:rf"
;;
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
index 4bf4321cd3..a2b27625d1 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -130,6 +130,10 @@ wzr-hp-g450h)
ucidef_add_switch_vlan "switch0" "2" "0t 1"
;;
+rb-951ui-2hnd)
+ ucidef_set_interfaces_lan_wan "eth1" "eth0"
+ ;;
+
rb-493g)
ucidef_set_interfaces_lan_wan "eth0 eth1.1" "eth1.2"
ucidef_add_switch "switch0" "1" "1"
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 23f2ecf36d..6dd5e62175 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -442,6 +442,9 @@ ar71xx_board_detect() {
*"RouterBOARD 951G-2HnD")
name="rb-951g-2hnd"
;;
+ *"RouterBOARD 951Ui-2HnD")
+ name="rb-951ui-2hnd"
+ ;;
*"RouterBOARD 2011L")
name="rb-2011l"
;;