openwrtv4/target/linux
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
..
adm5120 adm5120: drop 3.8 and 3.14 support 2015-03-16 07:41:19 +00:00
adm8668 adm8668: switch to 3.18 2015-03-28 18:18:50 +00:00
ar7 ar7: drop 3.14 support 2015-03-16 07:41:10 +00:00
ar71xx ar71xx: fix model string detection on NETGEAR WNDR3700/3800/WNDRMAC 2015-03-29 12:58:01 +00:00
arm64 arm64: remove bogus CONFIG_WIRELESS/CONFIG_WLAN overrides 2015-03-29 07:36:17 +00:00
at91 kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED 2015-03-06 07:56:34 +00:00
ath25 ath25: set myself as maintainer 2015-03-13 03:02:34 +00:00
au1000 au1000: drop 005-fix-cpu-clk.patch 2015-03-22 07:03:02 +00:00
bcm53xx bcm53xx: use the correct kernel image 2015-03-26 10:42:36 +00:00
brcm47xx kernel: backport rest of bcma patches 2015-03-24 10:39:10 +00:00
brcm63xx brcm63xx: remove linux 3.14 support 2015-03-28 13:21:09 +00:00
brcm2708 brcm2708: remove a patch that was added in the stable update (fixes #19253) 2015-03-21 21:24:08 +00:00
cns3xxx cns3xxx: drop 3.14 support 2015-03-16 07:40:41 +00:00
gemini gemini: fix usb driver compilation on 3.18 2015-03-27 16:03:16 +00:00
generic kernel: add few missing symbols 2015-03-29 04:50:16 +00:00
imx6 imx: add initial version of 3.18 support 2015-03-29 05:48:56 +00:00
ipq806x ipq806x: fix AP148 boot from NOR 2015-03-15 19:39:41 +00:00
ixp4xx ixp4xx: drop 3.14 support 2015-03-16 07:41:05 +00:00
kirkwood kirkwood: add missing symbol that broke full builds 2015-03-10 11:03:10 +00:00
lantiq lantiq: remove arphaned folder 2015-03-27 19:47:22 +00:00
malta drop 3.19 support 2015-03-26 09:42:59 +00:00
mcs814x kernel: disbale HAMRADIO in generic config 2015-03-06 07:56:21 +00:00
mpc85xx drop 3.19 support 2015-03-26 09:42:59 +00:00
mvebu mvebu: fixup usb3 support on the a38x 2015-03-26 14:32:45 +00:00
mxs mxs: remove linux 3.14 support 2015-03-28 13:21:04 +00:00
netlogic netlogic: bump to 3.18 2015-03-16 10:58:43 +00:00
octeon octeon: add er8 sysupgrade support 2015-03-20 08:49:08 +00:00
omap omap: remove old kernel versions 2015-03-16 05:51:56 +00:00
omap24xx omap24xx: Add basic config for linux-4.0 2015-03-19 18:45:32 +00:00
orion mark 3.10 targets as broken 2015-03-24 10:38:50 +00:00
oxnas oxnas: remove pre kernel 3.18 support from pinctrl driver 2015-03-21 21:47:20 +00:00
ppc40x mark 3.10 targets as broken 2015-03-24 10:38:50 +00:00
ppc44x ppc44x: use the mtdsplit framework for the Taishan 2015-03-11 12:20:03 +00:00
pxa kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED 2015-03-06 07:56:34 +00:00
ramips ralink: mt7621 add ECHI OCHI XCHI support 2015-03-27 19:07:29 +00:00
rb532 rb532: remove linux 3.14 support 2015-03-28 13:20:58 +00:00
realview realview: drop 3.14 support 2015-03-16 07:40:02 +00:00
sunxi sunxi: drop 3.14 support 2015-03-16 07:41:24 +00:00
uml uml: remove linux 3.14 support 2015-03-28 13:20:52 +00:00
x86 x86_64: add description, maintainership 2015-03-29 12:17:39 +00:00
xburst xburst: Update to 3.18 2015-03-26 19:46:01 +00:00
Makefile