mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-18 17:33:31 +00:00
Update ethinfo (#2152)
This commit is contained in:
parent
ab71873585
commit
359d56d59a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user