ar71xx: fix wndr3700_board_detect for some NETGEAR WNDR3700v2 (again)
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 20 Nov 2015 23:34:11 +0000 (23:34 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 20 Nov 2015 23:34:11 +0000 (23:34 +0000)
commitac775396028208dd179308fbafc4956aa52ba6bf
tree323fa6596531d654f2dd330cd7e9fcf6422e606a
parentd9816b0e005c19dde1fcae39231dfe1b574f5ac3
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47538 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/base-files/lib/ar71xx.sh