From ba3ebf0b743ceb64caa46a6f2e952d8383b6451e Mon Sep 17 00:00:00 2001 From: Bard Date: Mon, 9 Oct 2023 20:18:11 +0800 Subject: [PATCH] ethinfo: add `usb` interface --- files/generic/ethinfo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/generic/ethinfo b/files/generic/ethinfo index d1d27dc..61ae1f6 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 then + if ifname:match("^(eth%d+)$") == ifname or ifname:match("^(usb%d+)$") == ifname then local status, speed, duplex status = stat.carrier and "yes" or "no"