0065-ar71xx-add-user-space-support-for-the-OpenMesh-OM5P-AC.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. From: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  2. Date: Sat, 9 Apr 2016 10:25:51 +0000
  3. Subject: ar71xx: add user-space support for the OpenMesh OM5P-AC
  4. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  5. Backport of r49142
  6. Forwarded: https://patchwork.ozlabs.org/patch/624192/
  7. diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
  8. index 44d2ddf..a4051f2 100644
  9. --- a/target/linux/ar71xx/base-files/etc/diag.sh
  10. +++ b/target/linux/ar71xx/base-files/etc/diag.sh
  11. @@ -178,6 +178,9 @@ get_status_led() {
  12. om5p-an)
  13. status_led="om5p:blue:power"
  14. ;;
  15. + om5p-ac)
  16. + status_led="om5pac:blue:power"
  17. + ;;
  18. onion-omega)
  19. status_led="onion:amber:system"
  20. ;;
  21. diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  22. index c451124..9a768cd 100644
  23. --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  24. +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  25. @@ -304,6 +304,11 @@ om5p-an)
  26. ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1"
  27. ;;
  28. +om5p-ac)
  29. + ucidef_set_led_netdev "port1" "port1" "om5pac:blue:lan" "eth0"
  30. + ucidef_set_led_netdev "port2" "port2" "om5pac:blue:wan" "eth1"
  31. + ;;
  32. +
  33. qihoo-c301)
  34. ucidef_set_led_wlan "wlan2g" "WLAN2G" "qihoo:red:status" "phy1tpt"
  35. ;;
  36. diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  37. index 587d029..10b8048 100755
  38. --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
  39. +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  40. @@ -616,6 +616,9 @@ ar71xx_board_detect() {
  41. *"OM5P AN")
  42. name="om5p-an"
  43. ;;
  44. + *"OM5P AC")
  45. + name="om5p-ac"
  46. + ;;
  47. *"Onion Omega")
  48. name="onion-omega"
  49. ;;