From 3d29f8e1ee361a66e47d1083c52c907d5dcbb716 Mon Sep 17 00:00:00 2001 From: LEAN-ESX Date: Sun, 24 Nov 2019 18:52:16 -0800 Subject: [PATCH] autocore: update ethinfo --- package/lean/autocore/Makefile | 2 +- package/lean/autocore/files/sbin/ethinfo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/lean/autocore/Makefile b/package/lean/autocore/Makefile index 28278222a..ee75d5cf8 100644 --- a/package/lean/autocore/Makefile +++ b/package/lean/autocore/Makefile @@ -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 diff --git a/package/lean/autocore/files/sbin/ethinfo b/package/lean/autocore/files/sbin/ethinfo index f1fff5054..d2d63286f 100755 --- a/package/lean/autocore/files/sbin/ethinfo +++ b/package/lean/autocore/files/sbin/ethinfo @@ -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