Update ethinfo (#2152)

This commit is contained in:
Hugo Yuan 2019-11-25 20:40:32 +08:00 committed by coolsnowwolf
parent ab71873585
commit 359d56d59a

View File

@ -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)