diff options
Diffstat (limited to 'target/linux/bmips/bcm6362/base-files/lib/upgrade/platform.sh')
-rw-r--r-- | target/linux/bmips/bcm6362/base-files/lib/upgrade/platform.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/bmips/bcm6362/base-files/lib/upgrade/platform.sh b/target/linux/bmips/bcm6362/base-files/lib/upgrade/platform.sh new file mode 100644 index 0000000000..9175cf4255 --- /dev/null +++ b/target/linux/bmips/bcm6362/base-files/lib/upgrade/platform.sh @@ -0,0 +1,22 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +. /lib/upgrade/cfe-jffs2-nand.sh + +PART_NAME=firmware +REQUIRE_IMAGE_METADATA=1 + +platform_check_image() { + return 0 +} + +platform_do_upgrade() { + case "$(board_name)" in + huawei,hg253s-v2 |\ + netgear,dgnd3700-v2) + cfe_jffs2_nand_upgrade "$1" + ;; + *) + default_do_upgrade "$1" + ;; + esac +} |