diff options
| author | Florian Eckert | 2024-10-25 09:04:10 +0000 |
|---|---|---|
| committer | Christian Marangi | 2024-11-06 09:34:47 +0000 |
| commit | 109fa41b2321506280397e03757976c468832668 (patch) | |
| tree | 73fc1f84f5b475f24d303d1bd745331ef505fe9b | |
| parent | ef3ab8bc8fb18216793dd0c8106dd222c560453a (diff) | |
| download | procd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; |