diff options
-rw-r--r-- | modules/freifunk/luasrc/controller/freifunk/freifunk.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/freifunk/luasrc/controller/freifunk/freifunk.lua b/modules/freifunk/luasrc/controller/freifunk/freifunk.lua index 847083ba3..e30cdb10f 100644 --- a/modules/freifunk/luasrc/controller/freifunk/freifunk.lua +++ b/modules/freifunk/luasrc/controller/freifunk/freifunk.lua @@ -128,6 +128,7 @@ function jsonstatus() local http = require "luci.http" local json = require "luci.json" local ltn12 = require "luci.ltn12" + local version = require "luci.version" local webadmin = require "luci.tools.webadmin" local cursor = uci.cursor_state() @@ -146,7 +147,12 @@ function jsonstatus() 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 = {} cursor:foreach("freifunk", "public", function(s) |