mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-18 17:33:31 +00:00
autocore: update ethinfo
This commit is contained in:
parent
774649b9a1
commit
3d29f8e1ee
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=autocore
|
||||
PKG_VERSION:=1
|
||||
PKG_RELEASE:=21
|
||||
PKG_RELEASE:=22
|
||||
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
@ -16,7 +16,7 @@ info()
|
||||
d=$(ethtool eth$1 | grep 'Speed' | cut -f2 -d: | uniq)
|
||||
|
||||
#获取网络双工状态
|
||||
e=$(ethtool eth$1 | grep 'Duplex' | cut -f2 -d: | uniq)
|
||||
e=$(ethtool eth$1 | grep 'Duplex' | cut -f2 -d: | cut -f1 -d! | uniq)
|
||||
if [ $e = Full ]; then
|
||||
f=1
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user