0093-ar71xx-enable-sysupgrade-for-the-OpenMesh-OM2P-HSv3.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  2. Date: Fri, 20 May 2016 18:03:50 +0200
  3. Subject: ar71xx: enable sysupgrade for the OpenMesh OM2P-HSv3
  4. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  5. Forwarded: https://patchwork.ozlabs.org/patch/637054/
  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 209cdaa..0e8ea27 100644
  8. --- a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
  9. +++ b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
  10. @@ -63,6 +63,7 @@ platform_check_image_openmesh()
  11. [ "$board" = "om2p-lc" ] && break
  12. [ "$board" = "om2p-hs" ] && break
  13. [ "$board" = "om2p-hsv2" ] && break
  14. + [ "$board" = "om2p-hsv3" ] && 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 aeb4577..9b26e73 100755
  20. --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  21. +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  22. @@ -306,6 +306,7 @@ platform_check_image() {
  23. om2pv2 | \
  24. om2p-hs | \
  25. om2p-hsv2 | \
  26. + om2p-hsv3 | \
  27. om2p-lc | \
  28. om5p | \
  29. om5p-an | \
  30. @@ -541,6 +542,7 @@ platform_do_upgrade() {
  31. om2pv2 | \
  32. om2p-hs | \
  33. om2p-hsv2 | \
  34. + om2p-hsv3 | \
  35. om2p-lc | \
  36. om5p | \
  37. om5p-an | \