ar71xx: sysupgrade: improve CPE/WBS 210/510 validation, add new metadata offset
authorMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 10 Apr 2018 16:06:20 +0000 (18:06 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 10 Apr 2018 16:59:05 +0000 (18:59 +0200)
commit6577fe2198f5c75acb1dba789941d96a036f4dae
tree7435130841a984011beee59619a09d8f57fdb6e8
parentafca23558a2fbfb2cb044ec69bfb9a7447121927
ar71xx: sysupgrade: improve CPE/WBS 210/510 validation, add new metadata offset

Previously, tplink_pharos_check_image() would accept any image with ELF
magic and only non-printable data in the support-list, as in this case the
while-read loop would not run at all. Add the new support-list offset and
ensure an image is only accepted when the model string is actually found.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
target/linux/ar71xx/base-files/lib/upgrade/platform.sh