[OpenWrt-Devel] [PATCH 1/3] ar71xx: simplify TP-LINK model detection
Matthias Schiffer
mschiffer at universe-factory.net
Thu Sep 18 11:13:16 EDT 2014
Ping...
On 09/01/2014 05:53 PM, 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.
>
> 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"
>
>
-------------- 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/20140918/e0dce44c/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