Felix Fietkau 6ed31e2b5c ar71xx: fix wndr3700_board_detect for some NETGEAR WNDR3700v2
There are a few NETGEAR devices which don't terminate the model name in the
ART with a NUL byte, at least some NETGEAR WNDR3700v2. The current awk
expression doesn't match 0xFF bytes, so AR71XX_MODEL contains lots of
trailing 0xFF garbage in this case.

Fix this by matching for the first non-printable character and explicitly
setting LC_CTYPE=C (probably not strictly necessary on OpenWrt, but will
definitely work like this, even when awk supports locales and LANG is set).

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

Backport of r46455

git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48087 3c298f89-4303-0410-b956-a3cf2f4a3e73
2016-01-03 14:48:06 +00:00
..
2015-04-11 10:28:06 +00:00
2015-05-28 13:45:33 +00:00
2015-05-27 14:57:38 +00:00
2015-03-13 03:02:34 +00:00
2015-05-29 11:28:33 +00:00
2015-10-19 10:30:18 +00:00
2015-06-17 10:22:04 +00:00
2015-05-29 11:28:20 +00:00
2015-05-27 15:34:30 +00:00
2015-12-09 11:25:01 +00:00
2015-05-21 19:32:46 +00:00
2015-03-28 13:20:52 +00:00
2010-08-06 21:36:35 +00:00