0092-ar71xx-add-user-space-support-for-the-OpenMesh-OM2P-HSv3.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  2. Date: Fri, 20 May 2016 18:03:49 +0200
  3. Subject: ar71xx: add user-space support for the OpenMesh OM2P-HSv3
  4. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  5. Forwarded: https://patchwork.ozlabs.org/patch/637053/
  6. diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
  7. index d4d8b4e..aa02212 100644
  8. --- a/target/linux/ar71xx/base-files/etc/diag.sh
  9. +++ b/target/linux/ar71xx/base-files/etc/diag.sh
  10. @@ -171,6 +171,7 @@ get_status_led() {
  11. om2pv2 | \
  12. om2p-hs | \
  13. om2p-hsv2 | \
  14. + om2p-hsv3 | \
  15. om2p-lc)
  16. status_led="om2p:blue:power"
  17. ;;
  18. diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  19. index dc8b8d6..5767f48 100644
  20. --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  21. +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  22. @@ -297,6 +297,7 @@ om2p | \
  23. om2pv2 | \
  24. om2p-hs | \
  25. om2p-hsv2 | \
  26. +om2p-hsv3 | \
  27. om2p-lc)
  28. ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
  29. ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
  30. diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  31. index db908f9..dc51b03 100755
  32. --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
  33. +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  34. @@ -610,6 +610,9 @@ ar71xx_board_detect() {
  35. *"OM2P HSv2")
  36. name="om2p-hsv2"
  37. ;;
  38. + *"OM2P HSv3")
  39. + name="om2p-hsv3"
  40. + ;;
  41. *"OM2P LC")
  42. name="om2p-lc"
  43. ;;