]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ipq40xx: Change name for openmesh.sh to vendor-free name
authorSven Eckelmann <sven@narfation.org>
Sat, 21 Nov 2020 21:27:11 +0000 (22:27 +0100)
committerPetr Štetiar <ynezz@true.cz>
Tue, 22 Dec 2020 18:11:50 +0000 (19:11 +0100)
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>
target/linux/ipq40xx/base-files/lib/upgrade/dualboot_datachk.sh [moved from target/linux/ipq40xx/base-files/lib/upgrade/openmesh.sh with 94% similarity]
target/linux/ipq40xx/base-files/lib/upgrade/platform.sh

similarity index 94%
rename from target/linux/ipq40xx/base-files/lib/upgrade/openmesh.sh
rename to target/linux/ipq40xx/base-files/lib/upgrade/dualboot_datachk.sh
index 8e02186eb81b17d56d0cb8ceba95dbe506e2984b..807a85d43ccd57642b52e7c1a7f92295cb6cd036 100644 (file)
@@ -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
index 09ea3964690a9041a37f34c7cdbc5e7f44be2ee3..0fbce92f3bedf3f6bac43aafecdc2ef92f7d0644 100644 (file)
@@ -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"