Skip to content
Snippets Groups Projects
Select Git revision
  • experimental
  • master
  • v2021.1.2-ffs
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2020.2.3-ffs
  • nrbffs/fastd-remove-delay
  • v2020.2.2-ffs
  • v2020.2.1-ffs
  • v2020.2-ffs
  • v2020.2.x
  • v2020.1.3-ffs
  • v2020.1.1-ffs
  • v2020.1-ffs
  • v2019.1.2-ffs
  • v2019.1.1-ffs
  • nrb/test-radv-filter
  • v2019.1-ffs
  • nrbffs/netgear-ex6120
  • v2021.1.2-ffs0.2
  • v2021.1.2-ffs0.1
  • v2021.1.1-ffs0.4
  • v2021.1.1-ffs0.3
  • v2021.1.1-ffs0.2
  • v2021.1.1-ffs0.1
  • v2021.1-ffs0.1
  • v2020.2.3-ffs0.3
  • v2020.2.3-ffs0.2
  • v2020.2.3-ffs0.1
  • v2020.2.2-ffs0.1
  • v2020.2.1-ffs0.1
  • v2020.2-ffs0.1
  • v2020.2
  • v2020.2.x-ffs0.1
  • v2020.1.3-ffs0.1
  • v2020.1.1-ffs0.1
  • v2020.1-ffs0.1
  • v2019.1.2-ffs0.1
  • v2019.1.1-ffs0.1
40 results

0020-ar71xx-avoid-AR71XX_MODEL-ending-with-a-space-on-some-TP-LINK-like-devices.patch

Blame
  • Forked from firmware / FFS Gluon
    3520 commits behind, 3 commits ahead of the upstream repository.
    0020-ar71xx-avoid-AR71XX_MODEL-ending-with-a-space-on-some-TP-LINK-like-devices.patch 1.23 KiB
    From: Matthias Schiffer <mschiffer@universe-factory.net>
    Date: Fri, 1 Apr 2016 23:19:16 +0200
    Subject: 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>
    
    Backport of r49106
    
    diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
    index b220aad..395a012 100755
    --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
    +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
    @@ -133,7 +133,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"*)
    @@ -196,8 +196,8 @@ tplink_board_detect() {
     	"083000"*)
     		model="TP-Link TL-WA830RE"
     
    -		if [ "$hwver" = 'v10' ]; then
    -			hwver='v1'
    +		if [ "$hwver" = ' v10' ]; then
    +			hwver=' v1'
     		fi
     		;;
     	"084100"*)
    @@ -296,7 +296,7 @@ tplink_board_detect() {
     		;;
     	esac
     
    -	AR71XX_MODEL="$model $hwver"
    +	AR71XX_MODEL="$model$hwver"
     }
     
     tplink_pharos_get_model_string() {