ar71xx: fix wndr3700_board_detect for some NETGEAR WNDR3700v2 (again)
authorFelix Fietkau <nbd@openwrt.org>
Sun, 3 Jan 2016 14:48:13 +0000 (14:48 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 3 Jan 2016 14:48:13 +0000 (14:48 +0000)
commit760a71b42d9ab4ecd46ebf0d17ceb40fdc5322a3
treef41473f299822f8b9a9c6891356928c7c1029059
parent222e0c8b343019c4c24afa5324846d37011d2711
ar71xx: fix wndr3700_board_detect for some NETGEAR WNDR3700v2 (again)

When fixing the model string for WNDR3700v2 which contain a model string
followed by 0xff in r46455, the match for other versions of the WNDR3700v2
which just contain lots of 0xff broke (as the 0xff $model is checked for
is stripped off).

Fix by stripping off non-printable characters only for the actual output
string, but not for the internal matching.

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

SVN-Revision: 48088
target/linux/ar71xx/base-files/lib/ar71xx.sh