diff options
| author | Steven Barth <steven@midlink.org> | 2009-01-26 10:21:20 +0000 |
|---|---|---|
| committer | Steven Barth <steven@midlink.org> | 2009-01-26 10:21:20 +0000 |
| commit | f9893376b7cc86946e7d0191f205cf4ce655f7fb (patch) | |
| tree | f9587efa8c44f89aa7e75743c3ceedb7373d896d | |
| parent | f33ae6e8cd78dbf3b189f9002e96e566ddee86c8 (diff) | |
Add versioning information to Freifunk status
| -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 847083ba37..e30cdb10f8 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) |
