0099-ar71xx-enable-sysupgrade-for-the-OpenMesh-MR1750v2.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  2. Date: Fri, 20 May 2016 18:03:56 +0200
  3. Subject: ar71xx: enable sysupgrade for the OpenMesh MR1750v2
  4. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  5. Forwarded: https://patchwork.ozlabs.org/patch/637060/
  6. diff --git a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
  7. index 0e8ea27..95d39bf 100644
  8. --- a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
  9. +++ b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
  10. @@ -81,6 +81,7 @@ platform_check_image_openmesh()
  11. ;;
  12. MR1750)
  13. [ "$board" = "mr1750" ] && break
  14. + [ "$board" = "mr1750v2" ] && break
  15. echo "Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform"
  16. return 1
  17. ;;
  18. diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  19. index 9b26e73..f33419f 100755
  20. --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  21. +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  22. @@ -298,6 +298,7 @@ platform_check_image() {
  23. return 0;
  24. ;;
  25. mr1750 | \
  26. + mr1750v2 | \
  27. mr600 | \
  28. mr600v2 | \
  29. mr900 | \
  30. @@ -534,6 +535,7 @@ platform_do_upgrade() {
  31. platform_do_upgrade_dir825b "$ARGV"
  32. ;;
  33. mr1750 | \
  34. + mr1750v2 | \
  35. mr600 | \
  36. mr600v2 | \
  37. mr900 | \