From 866b43739e162303d43e910605d7ede71110939f Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Sat, 15 May 2021 16:43:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20banner=20=E9=A2=9C?= =?UTF-8?q?=E8=89=B2,=E6=B7=BB=E5=8A=A0=E5=BF=AB=E6=8D=B7=E6=8C=87?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加快捷指令: reload: clear && /etc/profile cls: clear run_coremark: bash /etc/coremark.sh --- CustomFiles/Depends/profile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/CustomFiles/Depends/profile b/CustomFiles/Depends/profile index 0548363..926439f 100644 --- a/CustomFiles/Depends/profile +++ b/CustomFiles/Depends/profile @@ -1,7 +1,7 @@ Sysinfo() { [ -f /etc/openwrt_info ] && source /etc/openwrt_info > /dev/null 2>&1 export Target=${DEFAULT_Device} - [ -n "${CURRENT_Version}" ] && export Version="${CURRENT_Version}" || Version=Unknown + [ -n "${CURRENT_Version}" ] && export Version="${CURRENT_Version}" || Version=未知 [ -z "${Target}" ] && export Target=$(jsonfilter -e '@.model.id' < /etc/board.json | tr ',' '_') export IP_Address=$(ifconfig -a | grep inet | grep -v 127.0.0.1 | grep -v inet6 | awk '{print $2}' | tr -d "addr:" | awk 'NR==1') export CoreMark=$([ -f /etc/bench.log ] && egrep -o "[0-9]+" /etc/bench.log | awk 'NR==1') @@ -14,8 +14,8 @@ Sysinfo() { echo -e " 固件版本: ${Skyb}${Version}${White}" echo " IP 地址 : ${IP_Address}" echo " 可用空间: ${Overlay_Available}" - echo " 运行时间: ${Startup}" [ -n "${CoreMark}" ] && echo " 性能得分: ${CoreMark}" + echo " 运行时间: ${Startup}" echo "" } @@ -28,7 +28,7 @@ Skyb="\e[36m" clear [ -e /tmp/.failsafe ] && export FAILSAFE=1 [ -f /etc/banner ] && { - echo -e "$Blue" + echo -e "$Skyb" cat /etc/banner echo -e "$White" } @@ -64,10 +64,9 @@ esac unset FILE } -alias ll='ls -alF --color=auto' service() { [ -f "/etc/init.d/$1" ] || { - echo "service "'"'"$1"'"'" not found, the following services are available:" + echo -e "${Red}service "'"'"$1"'"'" not found, the following services are available:${White}\n" ls "/etc/init.d" return 1 } @@ -75,9 +74,10 @@ service() { } Sysinfo +alias reload='clear && /etc/profile' alias autoupdate='bash /bin/AutoUpdate.sh' -alias AutoUpdate='bash /bin/AutoUpdate.sh' -alias Tools='bash /bin/AutoBuild*.sh' -alias tools='bash /bin/AutoBuild*.sh' -alias coremarkd='bash /etc/coremark.sh' -alias shutdown='sync && poweroff' \ No newline at end of file +alias tools='bash /bin/AutoBuild_Tools.sh' +alias run_coremark='bash /etc/coremark.sh' +alias shutdown='sync && poweroff' +alias ll='ls -alF --color=auto' +alias cls='clear' \ No newline at end of file