ar71xx: Fixes for 951Ui-2HnD board support
authorJohn Crispin <john@openwrt.org>
Wed, 18 Jun 2014 10:08:08 +0000 (10:08 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 18 Jun 2014 10:08:08 +0000 (10:08 +0000)
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

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/02_network
target/linux/ar71xx/base-files/lib/ar71xx.sh

index 80f9090b1a76d8ce8eb39451c738a65f998ca945..d5063dead50235bf52d0f4dd151c514d7e0f1d15 100755 (executable)
@@ -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"
                ;;
index 4bf4321cd3e6a8774c23e632e2a76cdc8f1bf1b1..a2b27625d1abee5d0ffd852c9199213062dbab99 100755 (executable)
@@ -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"
index 23f2ecf36d527c618d66eeed42edcde7f9d3b41b..6dd5e621757a20dfca3f32ae8f362fe09ad90ae5 100755 (executable)
@@ -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"
                ;;