treewide: sysupgrade: don't use $ARGV in platform_do_upgrade()
[openwrt/openwrt.git] / target / linux / cns3xxx / base-files / lib / upgrade / platform.sh
1 PART_NAME=firmware
2
3 CI_BLKSZ=65536
4
5 platform_check_image() {
6 local magic="$(get_magic_long "$1")"
7
8 [ "$#" -gt 1 ] && return 1
9
10 [ "$magic" != "27051956" ] && {
11 echo "Invalid image type."
12 return 1
13 }
14 return 0
15 }
16
17 platform_do_upgrade() {
18 default_do_upgrade "$1"
19 }