mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 03:13:56 +08:00
Update luci-mod-status.patch
This commit is contained in:
1 parent
fd89f81ba6
commit
da9e0ffb80
1 file changed
+24
@@ -162,3 +162,27 @@ diff --git a/luci-mod-status/htdocs/luci-static/resources/view/status/include/15
|
|||||||
similarity index 100%
|
similarity index 100%
|
||||||
rename from luci-mod-status/htdocs/luci-static/resources/view/status/include/15_ports.js
|
rename from luci-mod-status/htdocs/luci-static/resources/view/status/include/15_ports.js
|
||||||
rename to luci-mod-status/htdocs/luci-static/resources/view/status/include/26_ports.js
|
rename to luci-mod-status/htdocs/luci-static/resources/view/status/include/26_ports.js
|
||||||
|
|
||||||
|
--- a/luci-mod-status/root/usr/lib/lua/luci/controller/netstat.lua
|
||||||
|
+++ b/luci-mod-status/root/usr/lib/lua/luci/controller/netstat.lua
|
||||||
|
@@ -3,9 +3,6 @@ local nixio = require("nixio")
|
||||||
|
local uci = require("luci.model.uci").cursor()
|
||||||
|
|
||||||
|
function index()
|
||||||
|
- entry({"admin", "tools"}, firstchild(), _("Tools"), 50).dependent = false
|
||||||
|
- entry({"admin", "tools", "netstat"}, cbi("netstat/config"), _("Netstat"), 20).leaf = true
|
||||||
|
- entry({"admin", "tools", "netstat_config"}, alias("admin", "tools", "netstat")).dependent = true
|
||||||
|
entry({"admin", "tools", "get_netdev_stats"}, call("getNetdevStats"), nil).sysauth = false
|
||||||
|
end
|
||||||
|
|
||||||
|
--- a/luci-mod-status/htdocs/luci-static/resources/view/status/include/08_stats.js
|
||||||
|
+++ b/luci-mod-status/htdocs/luci-static/resources/view/status/include/08_stats.js
|
||||||
|
@@ -474,7 +474,7 @@ function maybeRefreshIp() {
|
||||||
|
|
||||||
|
// ─── Main baseclass ───────────────────────────────────────────────────────────
|
||||||
|
return baseclass.extend({
|
||||||
|
- title: _(''),
|
||||||
|
+ title: _('Status'),
|
||||||
|
|
||||||
|
load() {
|
||||||
|
// Use ?fast=1 to skip slow public-IP APIs — response is near-instant
|
||||||
Reference in new issue
Block a user