mirror of
https://github.com/xopenwrt/X-OpenWrt-New.git
synced 2026-09-18 08:20:11 +00:00
优化调整
This commit is contained in:
@@ -12,8 +12,12 @@ Sysinfo() {
|
||||
then
|
||||
TEMP=$(echo "$(sensors 2> /dev/null | grep Core | awk '{Sum += $3};END {print Sum}') / $(sensors 2>/dev/null | grep Core | wc -l)" | bc 2>/dev/null)
|
||||
fi
|
||||
[ -n "${TARGET_BOOTABLE}" ] && printf " 设备信息: %-7s ${Div} ${Green}%-12s${White}\n" ${TARGET_PROFILE} ${TARGET_BOOTABLE} || \
|
||||
[ -n "${TARGET_PROFILE}" ] && printf " 设备信息: ${TARGET_PROFILE}\n"
|
||||
if [ -n "${TARGET_BOOTABLE}" ]
|
||||
then
|
||||
printf " 设备信息: %-7s ${Div} ${Green}%-12s${White}\n" ${TARGET_PROFILE} ${TARGET_BOOTABLE}
|
||||
else
|
||||
[ -n "${TARGET_PROFILE}" ] && printf " 设备信息: ${TARGET_PROFILE}\n"
|
||||
fi
|
||||
printf " 内核版本: $(uname -rs | cut -d ' ' -f2)\n"
|
||||
printf " 可用内存: %-7s ${Div} %s of %s\n" $(free | grep Mem | awk '{a=$7*100/$2;b=$7/1024;c=$2/1024} {printf("%.1fM %.1f%% %.1fM",b,a,c)}')
|
||||
printf " 可用存储: %-7s ${Div} %s of %s\n" $(df -T '/' | grep -v File | awk '{a=$5*100/$3;b=$5/1024;c=$3/1024} {printf("%.1fM %.1f%% %.1fM",b,a,c)}')
|
||||
@@ -85,7 +89,7 @@ alias reload='/etc/profile'
|
||||
alias autoupdate='bash /bin/AutoUpdate.sh'
|
||||
alias tools='bash /bin/AutoBuild_Tools.sh'
|
||||
alias coremarkd='/etc/coremark.sh'
|
||||
alias shutdown='sync && block umount && poweroff'
|
||||
alias shutdown='sync && poweroff'
|
||||
alias ls='ls --color=auto'
|
||||
alias l='ls -CF'
|
||||
alias ll='ls -alF'
|
||||
@@ -94,3 +98,4 @@ alias cls='clear'
|
||||
alias dh='df -h'
|
||||
alias syslog='cat $(uci get system.@system[0].log_file) 2> /dev/null'
|
||||
alias ramfree='sync && echo 3 > /proc/sys/vm/drop_caches'
|
||||
alias top='top -d 1'
|
||||
|
||||
Reference in New Issue
Block a user