ubus: expose firmware_url in system call master
authorPaul Spooren <mail@aparcar.org>
Thu, 30 Jan 2025 17:07:15 +0000 (18:07 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 30 Jan 2025 17:07:15 +0000 (18:07 +0100)
Expose upstream firmware URL in ubus call.

Signed-off-by: Paul Spooren <mail@aparcar.org>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
system.c

index 9c8d3dcbf03f51b56c090edb3b5e8069b181d450..7a4c24d84362f459f4fb4e931a4b88d60a28ba92 100644 (file)
--- a/system.c
+++ b/system.c
@@ -281,6 +281,8 @@ static int system_board(struct ubus_context *ctx, struct ubus_object *obj,
                                key = "description";
                        else if (!strcasecmp(key, "OPENWRT_BUILD_DATE"))
                                key = "builddate";
+                       else if (!strcasecmp(key, "FIRMWARE_URL"))
+                               key = "firmware_url";
                        else
                                continue;