projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: avoid AR71XX_MODEL ending with a space on some TP-LINK-like devices
[openwrt.git]
/
target
/
linux
/
ar71xx
/
base-files
/
lib
/
ar71xx.sh
diff --git
a/target/linux/ar71xx/base-files/lib/ar71xx.sh
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index
0d1405a
..
1822998
100755
(executable)
--- a/
target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/
target/linux/ar71xx/base-files/lib/ar71xx.sh
@@
-99,7
+99,7
@@
tplink_board_detect() {
hwid=$(tplink_get_hwid)
mid=$(tplink_get_mid)
hwver=${hwid:6:2}
hwid=$(tplink_get_hwid)
mid=$(tplink_get_mid)
hwver=${hwid:6:2}
- hwver="v${hwver#0}"
+ hwver="
v${hwver#0}"
case "$hwid" in
"015000"*)
case "$hwid" in
"015000"*)
@@
-171,8
+171,8
@@
tplink_board_detect() {
"083000"*)
model="TP-Link TL-WA830RE"
"083000"*)
model="TP-Link TL-WA830RE"
- if [ "$hwver" = 'v10' ]; then
- hwver='v1'
+ if [ "$hwver" = '
v10' ]; then
+ hwver='
v1'
fi
;;
"084100"*)
fi
;;
"084100"*)
@@
-277,7
+277,7
@@
tplink_board_detect() {
;;
esac
;;
esac
- AR71XX_MODEL="$model
$hwver"
+ AR71XX_MODEL="$model$hwver"
}
tplink_pharos_get_model_string() {
}
tplink_pharos_get_model_string() {