~修改自定义内核类型排序

This commit is contained in:
juewuy
2026-01-25 19:28:10 +08:00
parent 7c91ab5c02
commit ccbe2468b8

View File

@@ -264,30 +264,26 @@ setcoretype() {
echo "$crashcore" | grep -q 'singbox' && core_old=singbox || core_old=clash echo "$crashcore" | grep -q 'singbox' && core_old=singbox || core_old=clash
content_line "\033[33m请确认该自定义内核的类型\033[0m" content_line "\033[33m请确认该自定义内核的类型\033[0m"
separator_line "-" separator_line "-"
content_line "1) Clash基础内核" content_line "1) Mihomo(Meta)"
content_line "2) Clash-Premium内核" content_line "2) Singbox-reF1nd"
content_line "3) Mihomo(Meta)内核" content_line "3) Singbox"
content_line "4) Sing-Box内核" content_line "4) Clash"
content_line "5) Sing-Box-reF1nd内核"
content_line "0) 返回上级菜单" content_line "0) 返回上级菜单"
separator_line "=" separator_line "="
read -r -p "请输入对应标号> " num read -r -p "请输入对应标号> " num
case "$num" in case "$num" in
"" | 0) ;; "" | 0) ;;
1) 1)
crashcore=clash
;;
2)
crashcore=clashpre
;;
3)
crashcore=meta crashcore=meta
;; ;;
4) 2)
crashcore=singboxr
;;
3)
crashcore=singbox crashcore=singbox
;; ;;
5) 4)
crashcore=singboxr crashcore=clash
;; ;;
*) *)
errornum errornum