projects
/
openwrt
/
staging
/
aparcar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c22bebf
)
ar71xx: simplify TP-LINK model detection
author
John Crispin
<
[email protected]
>
Mon, 6 Oct 2014 04:53:20 +0000
(
04:53
+0000)
committer
John Crispin
<
[email protected]
>
Mon, 6 Oct 2014 04:53:20 +0000
(
04:53
+0000)
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 <
[email protected]
>
SVN-Revision: 42795
target/linux/ar71xx/base-files/lib/ar71xx.sh
patch
|
blob
|
history
diff --git
a/target/linux/ar71xx/base-files/lib/ar71xx.sh
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 78d67fae4d3a7898e6a8e7a2126d889a52580e9a..e4f780c8d5ba6366c07f02386d6ee97185f658c1 100755
(executable)
--- 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"