From d7a1be3765dba1d2239cf00ec63b0be3f5cb6ee4 Mon Sep 17 00:00:00 2001 From: Bard Date: Fri, 10 May 2024 13:58:47 +0800 Subject: [PATCH] ethinfo: add wan (Netgear R8500) --- files/generic/ethinfo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/generic/ethinfo b/files/generic/ethinfo index e4d821f..7ff7a59 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+)$") or ifname:match("^(lan%d+)$") == ifname then + if ifname:match("^(eth%d+)$") == ifname or ifname:match("^(usb%d+)$") or ifname:match("^(lan%d+)$") or ifname:match("wan") == ifname then local status, speed, duplex status = stat.carrier and "yes" or "no"