nand_do_upgrade "$1"
}
+linksys_mx_do_upgrade() {
+ CI_UBIPART="rootfs"
+ boot_part="$(fw_printenv -n boot_part)"
+ if [ -n "$UPGRADE_OPT_USE_CURR_PART" ]; then
+ if [ "$boot_part" -eq "2" ]; then
+ CI_KERNPART="alt_kernel"
+ CI_UBIPART="alt_rootfs"
+ fi
+ else
+ if [ "$boot_part" -eq "1" ]; then
+ fw_setenv boot_part 2
+ CI_KERNPART="alt_kernel"
+ CI_UBIPART="alt_rootfs"
+ else
+ fw_setenv boot_part 1
+ fi
+ fi
+ fw_setenv boot_part_ready 3
+ fw_setenv auto_recovery yes
+ nand_do_upgrade "$1"
+}
+
platform_check_image() {
return 0;
}
linksys,mx4300|\
linksys,mx5300|\
linksys,mx8500)
- boot_part="$(fw_printenv -n boot_part)"
- if [ "$boot_part" -eq "1" ]; then
- fw_setenv boot_part 2
- CI_KERNPART="alt_kernel"
- CI_UBIPART="alt_rootfs"
- else
- fw_setenv boot_part 1
- CI_UBIPART="rootfs"
- fi
- fw_setenv boot_part_ready 3
- fw_setenv auto_recovery yes
- nand_do_upgrade "$1"
+ linksys_mx_do_upgrade "$1"
;;
prpl,haze|\
qnap,301w)