mirror of https://github.com/hak5/openwrt-owl.git
ar71xx: add user-space support for OpenMesh OM2Pv2
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: 40956owl
parent
ef5f37a08d
commit
c788102ebc
|
@ -98,6 +98,7 @@ get_status_led() {
|
||||||
status_led="nbg6716:white:power"
|
status_led="nbg6716:white:power"
|
||||||
;;
|
;;
|
||||||
om2p | \
|
om2p | \
|
||||||
|
om2pv2 | \
|
||||||
om2p-hs | \
|
om2p-hs | \
|
||||||
om2p-lc)
|
om2p-lc)
|
||||||
status_led="om2p:blue:power"
|
status_led="om2p:blue:power"
|
||||||
|
|
|
@ -151,6 +151,7 @@ nbg6716)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
om2p | \
|
om2p | \
|
||||||
|
om2pv2 | \
|
||||||
om2p-hs | \
|
om2p-hs | \
|
||||||
om2p-lc)
|
om2p-lc)
|
||||||
ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
|
ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
|
||||||
|
|
|
@ -358,6 +358,9 @@ ar71xx_board_detect() {
|
||||||
*OM2P)
|
*OM2P)
|
||||||
name="om2p"
|
name="om2p"
|
||||||
;;
|
;;
|
||||||
|
*OM2Pv2)
|
||||||
|
name="om2pv2"
|
||||||
|
;;
|
||||||
*"OM2P HS")
|
*"OM2P HS")
|
||||||
name="om2p-hs"
|
name="om2p-hs"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -59,6 +59,7 @@ platform_check_image_openmesh()
|
||||||
case "$img_board_target" in
|
case "$img_board_target" in
|
||||||
OM2P)
|
OM2P)
|
||||||
[ "$board" = "om2p" ] && break
|
[ "$board" = "om2p" ] && break
|
||||||
|
[ "$board" = "om2pv2" ] && break
|
||||||
[ "$board" = "om2p-lc" ] && break
|
[ "$board" = "om2p-lc" ] && break
|
||||||
[ "$board" = "om2p-hs" ] && break
|
[ "$board" = "om2p-hs" ] && break
|
||||||
echo "Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform"
|
echo "Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform"
|
||||||
|
|
Loading…
Reference in New Issue