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>
This commit is contained in:
parent
17e5920490
commit
8a891bfaa0
@ -1,11 +1,11 @@
|
|||||||
# The U-Boot loader of the OpenMesh devices requires image sizes and
|
# The U-Boot loader with the datachk patchset for dualbooting requires image
|
||||||
# checksums to be provided in the U-Boot environment.
|
# sizes and checksums to be provided in the U-Boot environment.
|
||||||
# The OpenMesh devices come with 2 main partitions - while one is active
|
# The devices come with 2 main partitions - while one is active
|
||||||
# sysupgrade will flash the other. The boot order is changed to boot the
|
# 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
|
# newly flashed partition. If the new partition can't be booted due to
|
||||||
# upgrade failures the previously used partition is loaded.
|
# upgrade failures the previously used partition is loaded.
|
||||||
|
|
||||||
platform_do_upgrade_openmesh() {
|
platform_do_upgrade_dualboot_datachk() {
|
||||||
local tar_file="$1"
|
local tar_file="$1"
|
||||||
local restore_backup
|
local restore_backup
|
||||||
local primary_kernel_mtd
|
local primary_kernel_mtd
|
@ -113,7 +113,7 @@ platform_do_upgrade() {
|
|||||||
openmesh,a42 |\
|
openmesh,a42 |\
|
||||||
openmesh,a62)
|
openmesh,a62)
|
||||||
PART_NAME="inactive"
|
PART_NAME="inactive"
|
||||||
platform_do_upgrade_openmesh "$1"
|
platform_do_upgrade_dualboot_datachk "$1"
|
||||||
;;
|
;;
|
||||||
zyxel,nbg6617)
|
zyxel,nbg6617)
|
||||||
zyxel_do_upgrade "$1"
|
zyxel_do_upgrade "$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user