autocore: update ethinfo

This commit is contained in:
LEAN-ESX 2019-11-24 18:52:16 -08:00
parent 774649b9a1
commit 3d29f8e1ee
2 changed files with 2 additions and 2 deletions

View File

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

View File

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