luci-mod-status: re-enable LuCI version display
@@ -40,16 +40,14 @@ return baseclass.extend({
var boardinfo = data[0],
systeminfo = data[1],
cpubench = data[2],
- cpuusage = data[3]; //,
-// luciversion = data[4];
+ cpuusage = data[3],
+ luciversion = data[4];
-/*
luciversion = luciversion.filter(function(l) {
return l.match(/^\s*(luciname|luciversion)\s*=/);
}).map(function(l) {
return l.replace(/^\s*\w+\s*=\s*['"]([^'"]+)['"].*$/, '$1');
}).join(' ');
-*/
var datestr = null;
@@ -70,7 +68,7 @@ return baseclass.extend({
_('Hostname'), boardinfo.hostname,
_('Model'), boardinfo.model + cpubench.cpubench,
_('Architecture'), boardinfo.system,
- _('Firmware Version'), (L.isObject(boardinfo.release) ? boardinfo.release.description: '')/* + ' / ' : '') + (luciversion || '')*/,
+ _('Firmware Version'), (L.isObject(boardinfo.release) ? boardinfo.release.description: '') + ' / ' : '') + (luciversion || ''),
_('Kernel Version'), boardinfo.kernel,
_('Local Time'), datestr,
_('Uptime'), systeminfo.uptime ? '%t'.format(systeminfo.uptime) : null,
