diff options
author | Steven Barth <steven@midlink.org> | 2009-01-26 10:20:18 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-01-26 10:20:18 +0000 |
commit | 9e1f802dced46f10c0da7e6acccc1975a59445ed (patch) | |
tree | 0bd3a56213293a7f7aa3eaeaded9b353cab071e0 /modules/freifunk/luasrc | |
parent | 70fe5ad437fbff90954accaa1a90bcea37cfa469 (diff) |
Add versioning information to Freifunk status
Diffstat (limited to 'modules/freifunk/luasrc')
-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) |