summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Spooren2025-01-30 17:07:15 +0000
committerChristian Marangi2025-01-30 17:07:15 +0000
commit7fcb5a275fcff5ab697357c86ce568c71128b982 (patch)
treeb2811a0cb07eb1a90f6d1e3f993a16ba48ae3293
parent1e5c40e07928ab6de57ee1811945944ccb4f1907 (diff)
downloadprocd-7fcb5a275fcff5ab697357c86ce568c71128b982.tar.gz
ubus: expose firmware_url in system call
Expose upstream firmware URL in ubus call. Signed-off-by: Paul Spooren <mail@aparcar.org> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r--system.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/system.c b/system.c
index 9c8d3dc..7a4c24d 100644
--- 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;