openwrtv3/target/linux/ar71xx
John Crispin 23d37c1208 ar71xx: fix model string detection on NETGEAR WNDR3700/3800/WNDRMAC
There were a few issues with the existing code to detect the model string:
* Always using the string starting with byte 56 would cut off the W of WNDR when
  the ID starts with 29763654+16+64 instead of 29763654+16+128
* The string contained garbage after the zero byte instead of cutting it off
  after the zero (which wasn't always visible using busybox tools, but could
  confuse other scripts)

Tested on a WNDR3700v1 and a WNDR3700v2 using the new 29763654+16+64 ID in the
ART. Furthermore, tested against ART dumps of a WNDR3700v2 using the old
$'\xff...' value and a WNDR3800.

The [ -z "$model" ] check was dropped as there is no way to actually hit this
unless no ART partition is found at all.

The awk command was carefully crafted to work both with gawk and the (horribly
broken) busybox awk.

Fixes #18992.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 45140
2015-03-29 12:58:01 +00:00
..
base-files ar71xx: fix model string detection on NETGEAR WNDR3700/3800/WNDRMAC 2015-03-29 12:58:01 +00:00
files ar71xx: add kernel support for the OpenMesh OM5P-AN board 2015-03-17 09:43:19 +00:00
generic ar71xx: adjust OM5P profile for the OpenMesh OM5P-AN board 2015-03-17 09:43:56 +00:00
image ar71xx: add missing id for WNR2000v3 image (fixes #18959) 2015-03-27 00:35:34 +00:00
mikrotik ar71xx: added support for TL-WA830RE V2 2014-07-13 07:12:22 +00:00
nand Netgear R6100 support 2014-11-26 08:28:22 +00:00
patches-3.18 ar71xx: fix a double dereference in the unaligned access patch 2015-03-19 11:58:30 +00:00
base-files.mk ar71xx: drop procd_init console hack 2013-06-21 16:53:11 +00:00
config-3.18 ar71xx: rename wrt160nl's trx partition parser 2015-03-11 15:56:15 +00:00
Makefile ar71xx: make v3.18 default 2015-02-17 14:33:29 +00:00
modules.mk ar71xx: always enable hw ecc support for the ar934x-nfc module 2013-11-01 18:33:18 +00:00