aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorSven Eckelmann <sven.eckelmann@open-mesh.com>2016-05-17 17:51:36 +0200
committerFelix Fietkau <nbd@nbd.name>2016-05-23 12:19:23 +0200
commit823cea2d5d62450ae4a9c42de148f19064d3cca7 (patch)
tree7d57efc5974cf85a774b35c8f843fb6add92f4fa /target
parentd1b4a8cfcfb8f3965b79d199993bc847004a7419 (diff)
downloadupstream-823cea2d5d62450ae4a9c42de148f19064d3cca7.tar.gz
upstream-823cea2d5d62450ae4a9c42de148f19064d3cca7.tar.bz2
upstream-823cea2d5d62450ae4a9c42de148f19064d3cca7.zip
ar71xx: Allow OpenMesh CE images with more than 3 files
The CE image format used by OpenMesh can contain extra blocks which are not used for flashing. Only the first three embedded images (fwupgrade.cfg, kernel, rootfs) are required in this order to successfully flash an image via sysupgrade. All extra embedded images should be ignored for the available devices. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
index e026946716..bc362a751e 100644
--- a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
@@ -108,7 +108,7 @@ platform_check_image_openmesh()
platform_check_image_target_openmesh "$img_board_target" || return 1
- [ $img_num_files -ne 3 ] && {
+ [ $img_num_files -lt 3 ] && {
echo "Invalid number of embedded images ($img_num_files). Use the correct image for this platform"
return 1
}