summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Eckert2024-10-25 09:04:10 +0000
committerChristian Marangi2024-11-06 09:34:47 +0000
commit109fa41b2321506280397e03757976c468832668 (patch)
tree73fc1f84f5b475f24d303d1bd745331ef505fe9b
parentef3ab8bc8fb18216793dd0c8106dd222c560453a (diff)
downloadprocd-109fa41b2321506280397e03757976c468832668.tar.gz
system: fix description value from os-release
When changing the read file from '/etc/openwrt_release' to '/usr/lib/os-release', the correct variable for reading the description was not selected. The correct variable from the file ‘/usr/lib/os-release’ is 'OPENWRT_RELEASE'. Fixes: 0f88a52dc8a5 ("system: replace openwrt_release with os-release") Signed-off-by: Florian Eckert <fe@dev.tdt.de> [ add fixes tag ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r--system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system.c b/system.c
index 680ead9..9c8d3dc 100644
--- a/system.c
+++ b/system.c
@@ -277,7 +277,7 @@ static int system_board(struct ubus_context *ctx, struct ubus_object *obj,
key = "codename";
else if (!strcasecmp(key, "OPENWRT_BOARD"))
key = "target";
- else if (!strcasecmp(key, "PRETTY_NAME"))
+ else if (!strcasecmp(key, "OPENWRT_RELEASE"))
key = "description";
else if (!strcasecmp(key, "OPENWRT_BUILD_DATE"))
key = "builddate";