From 359d56d59a3690ec317908d34d46099eca133682 Mon Sep 17 00:00:00 2001 From: Hugo Yuan <429632952@163.com> Date: Mon, 25 Nov 2019 20:40:32 +0800 Subject: [PATCH] Update ethinfo (#2152) --- package/lean/autocore/files/sbin/ethinfo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/lean/autocore/files/sbin/ethinfo b/package/lean/autocore/files/sbin/ethinfo index d2d63286f..004430b1b 100755 --- a/package/lean/autocore/files/sbin/ethinfo +++ b/package/lean/autocore/files/sbin/ethinfo @@ -2,7 +2,7 @@ info() { #获取网络接口数量 - a=$(ifconfig -a | grep 'eth' | sort -u | wc -l) + a=$(ifconfig -a | grep '^eth' | sort -u | wc -l) #获取网络接口状态 b=$(ethtool eth$1 | grep 'detected' | cut -f2 -d: | uniq)