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)
commitae18d4469cc9269fc2c1b5142c8db343fd93e034
tree99a888f90f8e42101323d9b8d5048275e573e40c
parent5dea0e0c917eb4d3fcfe5cd79e98e068e3612218
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