提交 359d56d5 编写于 作者: yzx429632952's avatar yzx429632952 提交者: coolsnowwolf

Update ethinfo (#2152)

上级 ab718735
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册