Update luci-mod-status.patch

This commit is contained in:
kiddin9 authored and GitHub committed 2026-10-05 08:22:55 +08:00
1 parent fd89f81ba6
commit da9e0ffb80
1 file changed
+24
+24
View File
@@ -162,3 +162,27 @@ diff --git a/luci-mod-status/htdocs/luci-static/resources/view/status/include/15
similarity index 100%
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
--- 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