~优化本地内核导入显示

This commit is contained in:
juewuy
2025-12-08 14:27:32 +08:00
parent c6ff7bea28
commit 2cb274ca5e
2 changed files with 2 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ ckstatus() {
#检查执行权限
[ ! -x ${CRASHDIR}/start.sh ] && chmod +x ${CRASHDIR}/start.sh
#检查/tmp内核文件
for file in $(ls /tmp | grep -v [/$] | grep -v ' ' | grep -Ev ".*(gz|zip|7z|tar)$" | grep -iE 'CrashCore|^clash$|^clash-linux.*|^mihomo.*|^sing.*box|^clash.meta.*'); do
for file in $(ls /tmp | grep -v [/$] | grep -v ' ' | grep -Ev ".*(gz|zip|7z|tar)$" | grep -iE 'CrashCore|^clash$|^clash-linux.*|^mihomo.*|^sing.*box|meta.*'); do
chmod +x /tmp/$file
echo -e "发现可用的内核文件: \033[36m/tmp/$file\033[0m "
read -p "是否加载(会停止当前服务)(1/0) > " res

View File

@@ -1260,7 +1260,7 @@ setcoretype(){ #手动指定内核类型
echo -e "\033[33m请确认该自定义内核的类型\033[0m"
echo -e " 1 Clash基础内核"
echo -e " 2 Clash-Premium内核"
echo -e " 3 Clash-Meta内核"
echo -e " 3 Mihomo(Meta)内核"
echo -e " 4 Sing-Box内核"
echo -e " 5 Sing-Box-reF1nd内核"
read -p "请输入对应数字 > " num