Add versioning information to Freifunk status
This commit is contained in:
parent
f33ae6e8cd
commit
f9893376b7
1 changed files with 7 additions and 1 deletions
|
@ -128,6 +128,7 @@ function jsonstatus()
|
||||||
local http = require "luci.http"
|
local http = require "luci.http"
|
||||||
local json = require "luci.json"
|
local json = require "luci.json"
|
||||||
local ltn12 = require "luci.ltn12"
|
local ltn12 = require "luci.ltn12"
|
||||||
|
local version = require "luci.version"
|
||||||
local webadmin = require "luci.tools.webadmin"
|
local webadmin = require "luci.tools.webadmin"
|
||||||
|
|
||||||
local cursor = uci.cursor_state()
|
local cursor = uci.cursor_state()
|
||||||
|
@ -146,7 +147,12 @@ function jsonstatus()
|
||||||
hostname = sys.hostname()
|
hostname = sys.hostname()
|
||||||
}
|
}
|
||||||
|
|
||||||
root.brand = cursor:get_all("luci", "brand")
|
root.firmware = {
|
||||||
|
luciname=version.luciname,
|
||||||
|
luciversion=version.luciversion,
|
||||||
|
distname=version.distname,
|
||||||
|
distversion=version.distversion
|
||||||
|
}
|
||||||
|
|
||||||
root.freifunk = {}
|
root.freifunk = {}
|
||||||
cursor:foreach("freifunk", "public", function(s)
|
cursor:foreach("freifunk", "public", function(s)
|
||||||
|
|
Loading…
Reference in a new issue