aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/cns3xxx/base-files/lib/upgrade/platform.sh
blob: 58dd6d7590f91828f8557e22ea8e077f0f4dcaa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
PART_NAME=firmware

CI_BLKSZ=65536

platform_check_image() {
	local magic="$(get_magic_long "$1")"

	[ "$#" -gt 1 ] && return 1

	[ "$magic" != "27051956" ] && {
		echo "Invalid image type."
		return 1
	}
	return 0
}

platform_do_upgrade() {
	default_do_upgrade "$1"
}