2010-05-03 03:30:59 +08:00
|
|
|
PART_NAME=firmware
|
2008-12-25 06:16:04 +08:00
|
|
|
|
|
|
|
platform_check_image() {
|
2010-05-03 03:30:59 +08:00
|
|
|
[ "$(get_magic_word $(find_mtd_part firmware))" -eq "$(get_magic_word "$1")" ] && return 0
|
2008-12-25 06:16:04 +08:00
|
|
|
|
2010-05-03 03:30:59 +08:00
|
|
|
echo "Invalid image type. Please use an appropriate .bin file"
|
|
|
|
return 1
|
2008-12-25 06:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
# use default for platform_do_upgrade()
|