aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq40xx/base-files
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2020-11-21 22:27:11 +0100
committerPetr Štetiar <ynezz@true.cz>2020-12-22 19:11:50 +0100
commit8a891bfaa01d9592ea86c6b0cbbd5c04688c09f8 (patch)
tree06ecea0dccb840d0583197b7eb154ed39a94f973 /target/linux/ipq40xx/base-files
parent17e592049005f3f7e65429966b21b2d834f9c2f0 (diff)
downloadupstream-8a891bfaa01d9592ea86c6b0cbbd5c04688c09f8.tar.gz
upstream-8a891bfaa01d9592ea86c6b0cbbd5c04688c09f8.tar.bz2
upstream-8a891bfaa01d9592ea86c6b0cbbd5c04688c09f8.zip
ipq40xx: Change name for openmesh.sh to vendor-free name
Other vendors are using functionality similar to the ones OpenMesh used to implement two areas on the flash to store the default image and a fallback image. So just change the name to dualboot_datachk.sh to avoid duplicated code just to have the same script for different vendors. Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'target/linux/ipq40xx/base-files')
-rw-r--r--target/linux/ipq40xx/base-files/lib/upgrade/dualboot_datachk.sh (renamed from target/linux/ipq40xx/base-files/lib/upgrade/openmesh.sh)8
-rw-r--r--target/linux/ipq40xx/base-files/lib/upgrade/platform.sh2
2 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/ipq40xx/base-files/lib/upgrade/openmesh.sh b/target/linux/ipq40xx/base-files/lib/upgrade/dualboot_datachk.sh
index 8e02186eb8..807a85d43c 100644
--- a/target/linux/ipq40xx/base-files/lib/upgrade/openmesh.sh
+++ b/target/linux/ipq40xx/base-files/lib/upgrade/dualboot_datachk.sh
@@ -1,11 +1,11 @@
-# The U-Boot loader of the OpenMesh devices requires image sizes and
-# checksums to be provided in the U-Boot environment.
-# The OpenMesh devices come with 2 main partitions - while one is active
+# The U-Boot loader with the datachk patchset for dualbooting requires image
+# sizes and checksums to be provided in the U-Boot environment.
+# The devices come with 2 main partitions - while one is active
# sysupgrade will flash the other. The boot order is changed to boot the
# newly flashed partition. If the new partition can't be booted due to
# upgrade failures the previously used partition is loaded.
-platform_do_upgrade_openmesh() {
+platform_do_upgrade_dualboot_datachk() {
local tar_file="$1"
local restore_backup
local primary_kernel_mtd
diff --git a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh
index 09ea396469..0fbce92f3b 100644
--- a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh
@@ -113,7 +113,7 @@ platform_do_upgrade() {
openmesh,a42 |\
openmesh,a62)
PART_NAME="inactive"
- platform_do_upgrade_openmesh "$1"
+ platform_do_upgrade_dualboot_datachk "$1"
;;
zyxel,nbg6617)
zyxel_do_upgrade "$1"