[OpenWrt-Devel] [PATCH] procd: Add cpu string to board detection

Jo-Philipp Wich jo at mein.io
Sat Sep 15 15:55:23 EDT 2018


Hi,

> diff --git a/system.c b/system.c
> index 151f613..87ce2da 100644
> --- a/system.c
> +++ b/system.c
> @@ -65,6 +65,7 @@ static int system_board(struct ubus_context *ctx, struct ubus_object *obj,
>  
>  			if (!strcasecmp(key, "system type") ||
>  			    !strcasecmp(key, "processor") ||
> +                           !strcasecmp(key, "cpu") ||

Tabs vs. spaces

>  			    !strcasecmp(key, "model name"))
>  			{
>  				strtoul(val + 2, &key, 0);
> 


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list