aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/cns3xxx/base-files/lib/upgrade/platform.sh
blob: aa98b472444e2cbbd1534e61b3158f0cc1d44c78 (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 "$ARGV"
}