From da9e0ffb804a73942ba76a6cd2f4ae357e2c0380 Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Mon, 5 Oct 2026 08:22:55 +0800 Subject: [PATCH] Update luci-mod-status.patch --- .github/diy/patches/luci-mod-status.patch | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/diy/patches/luci-mod-status.patch b/.github/diy/patches/luci-mod-status.patch index 45005cd00..2d5da43cc 100644 --- a/.github/diy/patches/luci-mod-status.patch +++ b/.github/diy/patches/luci-mod-status.patch @@ -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