aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-10-06 04:53:20 +0000
committerJohn Crispin <john@openwrt.org>2014-10-06 04:53:20 +0000
commit05777fb9470333974feb22775f16057c34c0ccf4 (patch)
treec8cba543e05142f1f6cb5ba5824382011bf467d2 /target/linux/ar71xx/base-files
parentc22bebf6abb7af2e8ccdb65b3b367768c5f051da (diff)
downloadupstream-05777fb9470333974feb22775f16057c34c0ccf4.tar.gz
upstream-05777fb9470333974feb22775f16057c34c0ccf4.tar.bz2
upstream-05777fb9470333974feb22775f16057c34c0ccf4.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> SVN-Revision: 42795
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh6
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"