From: Steven Barth Date: Mon, 26 Jan 2009 10:21:20 +0000 (+0000) Subject: Add versioning information to Freifunk status X-Git-Tag: 0.8.5~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f9893376b7cc86946e7d0191f205cf4ce655f7fb;p=oweals%2Fluci.git Add versioning information to Freifunk status --- 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)