ar71xx: add user-space support for the OpenMesh OM5P
authorJohn Crispin <john@openwrt.org>
Sun, 20 Jul 2014 17:30:44 +0000 (17:30 +0000)
committerJohn Crispin <john@openwrt.org>
Sun, 20 Jul 2014 17:30:44 +0000 (17:30 +0000)
Signed-off-by: Marek Lindner <marek@open-mesh.com>
[sven@open-mesh.com: Rebased]
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
SVN-Revision: 41770

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
target/linux/ar71xx/base-files/lib/ar71xx.sh

index d94d41086308504ff071baea5d82d0df49d221da..566b53dcf3bcc1e7e0cfa9e688ec213c7d20c644 100755 (executable)
@@ -124,6 +124,9 @@ get_status_led() {
        om2p-lc)
                status_led="om2p:blue:power"
                ;;
+       om5p)
+               status_led="om5p:blue:power"
+               ;;
        pb44)
                status_led="pb44:amber:jump1"
                ;;
index f7757de0f3ad9e3377574fa3c080e55a6c2ffe0b..fa8466110e9cd35a5e4dd8c2486338361d8d1391 100755 (executable)
@@ -185,6 +185,11 @@ om2p-lc)
        ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
        ;;
 
+om5p)
+       ucidef_set_led_netdev "port1" "port1" "om5p:blue:wan" "eth0"
+       ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1"
+       ;;
+
 tew-712br)
        ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
        ucidef_set_led_switch "lan1" "LAN1" "trendnet:green:lan1" "switch0" "0x02"
index ef7240efdba969c347a411ade1cff48583c3b738..29993597965c996a34391bdb779064f65d90d4ca 100755 (executable)
@@ -412,6 +412,9 @@ ar71xx_board_detect() {
        *"OM2P LC")
                name="om2p-lc"
                ;;
+       *OM5P)
+               name="om5p"
+               ;;
        *PB42)
                name="pb42"
                ;;