From 08e0efdd64d7adf70e65d601ec94ba3698081cb5 Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Sat, 18 Jul 2020 00:12:59 +0800 Subject: [PATCH] autocore: drop luci ver display --- package/lean/autocore/files/rpcd_10_system.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package/lean/autocore/files/rpcd_10_system.js b/package/lean/autocore/files/rpcd_10_system.js index 8c1e788245..73638a0b6b 100644 --- a/package/lean/autocore/files/rpcd_10_system.js +++ b/package/lean/autocore/files/rpcd_10_system.js @@ -46,14 +46,16 @@ return L.Class.extend({ systeminfo = data[1], cpubench = data[2], cpuinfo = data[3], - cpuusage = data[4], - luciversion = data[5]; + cpuusage = data[4]; //, +// luciversion = data[5]; +/* 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; @@ -74,7 +76,7 @@ return L.Class.extend({ _('Hostname'), boardinfo.hostname, _('Model'), boardinfo.model + cpubench.cpubench, _('CPU Info'), cpuinfo.cpuinfo, - _('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,