diff options
author | John Crispin <blogic@openwrt.org> | 2014-10-06 04:53:20 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-10-06 04:53:20 +0000 |
commit | 8ae697d7f225e92cf0aef7fa2993979089c23447 (patch) | |
tree | 98089adeb2d7d34ac80eef6cf69eceea57f84804 /target | |
parent | 230b7ba04ac27275cc6f179f2ff80584d4c6b12f (diff) | |
download | upstream-8ae697d7f225e92cf0aef7fa2993979089c23447.tar.gz upstream-8ae697d7f225e92cf0aef7fa2993979089c23447.tar.bz2 upstream-8ae697d7f225e92cf0aef7fa2993979089c23447.zip |
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
Diffstat (limited to 'target')
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/ar71xx.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 78d67fae4d..e4f780c8d5 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -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" |