mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-12 17:12:04 +08: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_NAME:=autocore
|
||||||
PKG_VERSION:=1
|
PKG_VERSION:=1
|
||||||
PKG_RELEASE:=21
|
PKG_RELEASE:=22
|
||||||
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
@ -16,7 +16,7 @@ info()
|
|||||||
d=$(ethtool eth$1 | grep 'Speed' | cut -f2 -d: | uniq)
|
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
|
if [ $e = Full ]; then
|
||||||
f=1
|
f=1
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user