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)
commitf582483a39dd5ce917c8828d452183747906116c
tree323fa6596531d654f2dd330cd7e9fcf6422e606a
parent93eef8c4d9f348f99b1eac746f2f71c2e0a4be8e
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