add support for sysupgrade (#5117)
[openwrt/openwrt.git] / target / linux / brcm63xx / base-files / lib / upgrade / platform.sh
1 PART_NAME=linux
2 platform_check_image() {
3 [ "$ARGC" -gt 1 ] && return 1
4 case "$(get_magic_word "$1")" in
5 3600)
6 # 6348GW-11 boards use openwrt-96348GW-11-squashfs-cfe.bin files
7 return 0
8 ;;
9 *)
10 echo "Invalid image type. Please use only .bin files"
11 return 1
12 ;;
13 esac
14 }
15
16 # use default for platform_do_upgrade()