From 9e1f802dced46f10c0da7e6acccc1975a59445ed Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 26 Jan 2009 10:20:18 +0000 Subject: Add versioning information to Freifunk status --- modules/freifunk/luasrc/controller/freifunk/freifunk.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules/freifunk/luasrc') 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) -- cgit v1.2.3