优化调整
This commit is contained in:
		
							parent
							
								
									d207f98801
								
							
						
					
					
						commit
						11b703b991
					
				| 
						 | 
				
			
			@ -40,9 +40,3 @@ jobs:
 | 
			
		|||
        file_glob: true
 | 
			
		||||
        tag: AutoUpdate
 | 
			
		||||
        overwrite: true
 | 
			
		||||
 | 
			
		||||
    - name: Delete old Workflow Runs
 | 
			
		||||
      uses: GitRML/delete-workflow-runs@main
 | 
			
		||||
      with:
 | 
			
		||||
        retain_days: 1
 | 
			
		||||
        keep_minimum_runs: 1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -67,13 +67,13 @@ CONFIG_PACKAGE_luci-app-pptp-server=y
 | 
			
		|||
# CONFIG_PACKAGE_luci-app-rclone_INCLUDE_fuse-utils is not set
 | 
			
		||||
# CONFIG_PACKAGE_luci-app-rclone_INCLUDE_rclone-ng is not set
 | 
			
		||||
# CONFIG_PACKAGE_luci-app-rclone_INCLUDE_rclone-webui is not set
 | 
			
		||||
CONFIG_PACKAGE_luci-app-serverchan=y
 | 
			
		||||
CONFIG_PACKAGE_luci-app-ssr-plus=y
 | 
			
		||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Shadowsocks_Libev_Client=y
 | 
			
		||||
# CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Shadowsocks_Libev_Server is not set
 | 
			
		||||
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_ShadowsocksR_Libev_Client=y
 | 
			
		||||
# CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_ShadowsocksR_Libev_Server is not set
 | 
			
		||||
# CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Xray is not set
 | 
			
		||||
CONFIG_PACKAGE_luci-app-serverchan=y
 | 
			
		||||
CONFIG_PACKAGE_luci-app-sqm=y
 | 
			
		||||
CONFIG_PACKAGE_luci-app-syncdial=y
 | 
			
		||||
CONFIG_PACKAGE_luci-app-smartdns=y
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue