diff mbox series

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

Message ID 1536889065-10041-1-git-send-email-chrisrblake93@gmail.com
State Accepted
Delegated to: John Crispin
Headers show
Series [OpenWrt-Devel] procd: Add cpu string to board detection | expand

Commit Message

Chris Sept. 14, 2018, 1:37 a.m. UTC
This patch is in relation to
https://github.com/openwrt/openwrt/pull/1307 to help fix architecture
detection in LuCI which was added in
https://github.com/openwrt/luci/commit/b8f32b6da7accc672c5887e894a861de3f806cf5

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>

---
 system.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jo-Philipp Wich Sept. 15, 2018, 7:55 p.m. UTC | #1
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);
>
diff mbox series

Patch

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") ||
 			    !strcasecmp(key, "model name"))
 			{
 				strtoul(val + 2, &key, 0);