ar71xx: simplify TP-LINK model detection

All TP-LINK machine names begin with "TP-LINK", so there's no need to check for
more specific model names. This also allows adding new models like the Archer
series more easily.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42795 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
John Crispin
2014-10-06 04:53:20 +00:00
parent 230b7ba04a
commit 8ae697d7f2

View File

@@ -750,11 +750,7 @@ ar71xx_board_detect() {
;;
esac
case "$machine" in
*TL-WR* | *TL-WA* | *TL-MR* | *TL-WD*)
tplink_board_detect "$machine"
;;
esac
[ "${machine:0:8}" = 'TP-LINK ' ] && tplink_board_detect "$machine"
[ -z "$name" ] && name="unknown"