gluon-info: Add current domain to gluon-info

- provides easier information of the currently active domain
- tested by patching a running node
This commit is contained in:
Florian Maurer 2023-05-10 02:33:08 +02:00
parent 079f449d9d
commit f0246b65e2
No known key found for this signature in database
GPG Key ID: D5B29CD0C9E06237

View File

@ -26,6 +26,7 @@ local values = {
.. ' / ' .. util.trim(util.readfile('/lib/gluon/site-version')) }, .. ' / ' .. util.trim(util.readfile('/lib/gluon/site-version')) },
{ 'Firmware release', util.trim(util.readfile('/lib/gluon/release')) }, { 'Firmware release', util.trim(util.readfile('/lib/gluon/release')) },
{ 'Site', site.site_name() }, { 'Site', site.site_name() },
{ 'Domain', uci:get('gluon', 'core', 'domain') or 'n/a' },
{ 'Public VPN key', pubkey or 'n/a' }, { 'Public VPN key', pubkey or 'n/a' },
} }