0074-ar71xx-enable-sysupgrade-for-the-OpenMesh-OM5P-ACv2.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  2. Date: Sat, 9 Apr 2016 10:26:22 +0000
  3. Subject: ar71xx: enable sysupgrade for the OpenMesh OM5P-ACv2
  4. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  5. Backport of r49151
  6. Forwarded: https://patchwork.ozlabs.org/patch/624201/
  7. diff --git a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
  8. index 1cfead9..209cdaa 100644
  9. --- a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
  10. +++ b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
  11. @@ -74,6 +74,7 @@ platform_check_image_openmesh()
  12. ;;
  13. OM5PAC)
  14. [ "$board" = "om5p-ac" ] && break
  15. + [ "$board" = "om5p-acv2" ] && break
  16. echo "Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform"
  17. return 1
  18. ;;
  19. diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  20. index 67c0661..4a4c476 100755
  21. --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  22. +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  23. @@ -308,7 +308,8 @@ platform_check_image() {
  24. om2p-lc | \
  25. om5p | \
  26. om5p-an | \
  27. - om5p-ac)
  28. + om5p-ac | \
  29. + om5p-acv2)
  30. platform_check_image_openmesh "$magic_long" "$1" && return 0
  31. return 1
  32. ;;
  33. @@ -542,7 +543,8 @@ platform_do_upgrade() {
  34. om2p-lc | \
  35. om5p | \
  36. om5p-an | \
  37. - om5p-ac)
  38. + om5p-ac | \
  39. + om5p-acv2)
  40. platform_do_upgrade_openmesh "$ARGV"
  41. ;;
  42. unifi-outdoor-plus | \