From fb24e540048fa6ae43f5893f9325ebbc652d118a Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Thu, 29 Apr 2021 14:29:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=86=85=E6=A0=B8=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E3=80=81=E8=AE=BE=E5=A4=87=E5=90=8D=E7=A7=B0=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CustomFiles/Depends/profile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/CustomFiles/Depends/profile b/CustomFiles/Depends/profile index 4c9a6e1..26135d1 100644 --- a/CustomFiles/Depends/profile +++ b/CustomFiles/Depends/profile @@ -5,15 +5,17 @@ Sysinfo() { IP_Address=$(ifconfig -a | grep inet | grep -v 127.0.0.1 | grep -v inet6 | awk '{print $2}' | tr -d "addr:" | awk 'NR==1') CoreMark=$([ -f /etc/bench.log ] && egrep -o "[0-9]+" /etc/bench.log | awk 'NR==1') [ -z "${CoreMark}" ] && CoreMark=Unknown - Srartup=$(awk '{a=$1/86400;b=($1%86400)/3600;c=($1%3600)/60} {printf("%d 天 %d 小时 %d 分钟\n",a,b,c)}' /proc/uptime) + Startup=$(awk '{a=$1/86400;b=($1%86400)/3600;c=($1%3600)/60} {printf("%d 天 %d 小时 %d 分钟\n",a,b,c)}' /proc/uptime) Overlay_Available="$(df -h | grep ":/overlay" | awk '{print $4}' | awk 'NR==1')" - - echo -e "\n\n 设备名称: ${Target}" + echo -e "\n" + echo " 设备名称: $(uname -n) / ${Target}" echo " 固件版本: ${Version}" - echo " IP 地址: ${IP_Address}" - echo " 运行时间: ${Srartup}" - echo " CoreMark: ${CoreMark}" - echo -e " 可用空间: ${Overlay_Available}\n" + echo " 内核版本: $(uname -rs)" + echo " IP 地址 : ${IP_Address}" + echo " 运行时间: ${Startup}" + echo " 性能得分: ${CoreMark}" + echo " 可用空间: ${Overlay_Available}" + echo "" } [ -e /tmp/.failsafe ] && export FAILSAFE=1