diff options
author | John Crispin <blogic@openwrt.org> | 2016-04-01 07:11:56 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2016-04-01 07:11:56 +0000 |
commit | 9746ead2477546e580ee3c0655c50293e68c6742 (patch) | |
tree | eb37e033d8ae04f132a6ebfa471fdee931ecad82 /target | |
parent | f0d41e20e45db5a6334dbf7a23165b0baac0ea9d (diff) | |
download | master-187ad058-9746ead2477546e580ee3c0655c50293e68c6742.tar.gz master-187ad058-9746ead2477546e580ee3c0655c50293e68c6742.tar.bz2 master-187ad058-9746ead2477546e580ee3c0655c50293e68c6742.zip |
ar71xx: avoid AR71XX_MODEL ending with a space on some TP-LINK-like devices
Instead of adding the space when combining $model and $hwver, add the space
to the beginning of $hwver, so the resulting string won't end with a space
when $hwver is set to the empty string.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49106 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/ar71xx.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 0d1405a254..182299802b 100755 --- 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} - hwver="v${hwver#0}" + hwver=" v${hwver#0}" case "$hwid" in "015000"*) @@ -171,8 +171,8 @@ tplink_board_detect() { "083000"*) model="TP-Link TL-WA830RE" - if [ "$hwver" = 'v10' ]; then - hwver='v1' + if [ "$hwver" = ' v10' ]; then + hwver=' v1' fi ;; "084100"*) @@ -277,7 +277,7 @@ tplink_board_detect() { ;; esac - AR71XX_MODEL="$model $hwver" + AR71XX_MODEL="$model$hwver" } tplink_pharos_get_model_string() { |