From c02b47b4b9c1057c5acda33eff4bdae8cb45e9f5 Mon Sep 17 00:00:00 2001 From: Bard Date: Sun, 7 Apr 2024 05:46:15 +0800 Subject: [PATCH] ethinfo: add lan --- files/generic/ethinfo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/generic/ethinfo b/files/generic/ethinfo index 61ae1f6..e4d821f 100755 --- a/files/generic/ethinfo +++ b/files/generic/ethinfo @@ -7,7 +7,7 @@ local jsonc = require "luci.jsonc" local eth_info = {} local ifname, stat for ifname, stat in pairs(util.ubus("network.device", "status")) do - if ifname:match("^(eth%d+)$") == ifname or ifname:match("^(usb%d+)$") == ifname then + if ifname:match("^(eth%d+)$") == ifname or ifname:match("^(usb%d+)$") or ifname:match("^(lan%d+)$") == ifname then local status, speed, duplex status = stat.carrier and "yes" or "no"