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:29:19 +0000 (18:29 +0200)
commit5bfb344106f718e7de274be4fd46a4c689324c0a
treeb0bfbf664fe90392e4e41b4bac7f723d395608d9
parentd3f96fedecce9049f40fca82e20bbc93f44dcd92
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