[OpenWrt-Devel] [PATCH 2/7] ar71xx: add user-space support for the OpenMesh OM5P
sven at open-mesh.com
sven at open-mesh.com
Fri Jul 18 04:06:03 EDT 2014
From: Marek Lindner <marek at open-mesh.com>
Signed-off-by: Marek Lindner <marek at open-mesh.com>
[sven at open-mesh.com: Rebased]
Signed-off-by: Sven Eckelmann <sven at open-mesh.com>
---
target/linux/ar71xx/base-files/etc/diag.sh | 3 +++
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 5 +++++
target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++
3 files changed, 11 insertions(+)
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 6959002..e92d4d7 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -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"
;;
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 b1477ae..03dd153 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -182,6 +182,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"
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 23cee9a..00908c8 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -409,6 +409,9 @@ ar71xx_board_detect() {
*"OM2P LC")
name="om2p-lc"
;;
+ *OM5P)
+ name="om5p"
+ ;;
*PB42)
name="pb42"
;;
--
2.0.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list