ar71xx: fix wndr3700_board_detect for some NETGEAR WNDR3700v2 (again)
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 20 Nov 2015 23:34:11 +0000 (23:34 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 20 Nov 2015 23:34:11 +0000 (23:34 +0000)
commit605621fc3f2ebebca800dbcd360cd02f994f43ad
tree2d744e0ae379a9cccab0e62855ecdc42bebdcf14
parent923a59315c3acdc8f4deb2c8470c71902838271a
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>
SVN-Revision: 47538
target/linux/ar71xx/base-files/lib/ar71xx.sh