diff --git a/package/lean/autocore/files/sbin/ethinfo b/package/lean/autocore/files/sbin/ethinfo index d2d63286fa..004430b1ba 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)