1 # use default "image" for PART_NAME
2 # use default for platform_do_upgrade()
4 platform_check_image() {
5 [ "${ARGC}" -gt 1 ] && { echo 'Too many arguments. Only flash file expected.'; return 1; }
7 local hardware=`sed -n /Hardware/s/.*:.//p /proc/cpuinfo`
8 local magic="$(get_magic_word "$1")"
11 # hardware with padded uImage + padded rootfs
13 [ "${magic}" != '2705' ] && {
14 echo "Invalid image type ${magic}."
19 # Netgear WNR854T has extra header before uImage
21 [ "${magic}" != '8519' ] && {
22 echo "Invalid image type ${magic}."
29 echo "Sysupgrade is not yet supported on ${hardware}."