[OpenWrt-Devel] [PATCH 1/3] ar71xx: simplify TP-LINK model detection

Matthias Schiffer mschiffer at universe-factory.net
Fri Oct 3 19:49:45 EDT 2014


On 10/03/2014 10:23 PM, John Crispin wrote:
> 
> 
> On 01/09/2014 17:53, Matthias Schiffer wrote:
>> 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.
>>
> 
> are you sure, that they *all* start with TP-LINK ?
Yes, I've checked all machine strings defined in
target/linux/ar71xx/files/arch/mips/ath79/*; everything that contains
one of the four old match strings starts with TP-LINK.

> 
> 
> 
> 
>> Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net> 
>> --- target/linux/ar71xx/base-files/lib/ar71xx.sh | 6 +----- 1 file
>> changed, 1 insertion(+), 5 deletions(-)
>>
>> diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh
>> b/target/linux/ar71xx/base-files/lib/ar71xx.sh index
>> 1e96b6d..d26ac3d 100755 ---
>> a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++
>> b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -744,11 +744,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"
>>
>>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20141004/aaefd7a8/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list