mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-10 23:41:22 +00:00
~增加小米设备对autossh脚本的兼容
~增加小米设备/data/auto_start.sh文件,用于自定义开机启动项 ~增加Mihomo内核默认启用统一延迟功能 ~优化默认DNS,现在会默认使用localhost(如果可用)而不是阿里dns ~优化子菜单加载效率 ~优化部分设备的tun加载流程,修复因为未加载tun模块而导致的启动报错 ~优化dns界面显示 ~修复因为文件拆分路径改变导致的加载失败的一系列bug ~修复局域网过滤白名单失效的bug(需要重新启用) ~修复自定义入站启用失败的bug ~修复前台测试内核运行命令报错的bug ~修复卸载时的意外报错
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) Juewuy
|
||||
|
||||
[ -n "$__IS_MODULE_8_TOOLS_LOADED" ] && return
|
||||
__IS_MODULE_8_TOOLS_LOADED=1
|
||||
|
||||
. "$CRASHDIR"/libs/logger.sh
|
||||
. "$CRASHDIR"/libs/web_get_bin.sh
|
||||
|
||||
@@ -168,7 +171,7 @@ tools() {
|
||||
get_bin "$TMPDIR"/tun.ko bin/fix/tun.ko
|
||||
if [ "$?" = "0" ]; then
|
||||
mv -f "$TMPDIR"/tun.ko "$CRASHDIR"/tools/tun.ko &&
|
||||
"$CRASHDIR"/misnap_init.sh tunfix &&
|
||||
/data/shellcrash_init.sh tunfix &&
|
||||
echo -e "\033[32m设置成功!请重启服务!\033[0m"
|
||||
else
|
||||
echo -e "\033[31m文件下载失败,请重试!\033[0m"
|
||||
@@ -629,7 +632,7 @@ debug(){
|
||||
2)
|
||||
"$CRASHDIR"/start.sh stop
|
||||
"$CRASHDIR"/start.sh bfstart
|
||||
"$COMMAND"
|
||||
$COMMAND
|
||||
rm -rf "$TMPDIR"/CrashCore
|
||||
echo "-----------------------------------------------"
|
||||
exit
|
||||
@@ -758,15 +761,6 @@ userguide(){
|
||||
setconfig BINDIR /tmp/ShellCrash "$CRASHDIR"/configs/command.env
|
||||
}
|
||||
fi
|
||||
#设置加密DNS
|
||||
if [ -s $openssldir/certs/ca-certificates.crt ];then
|
||||
dns_nameserver='https://dns.alidns.com/dns-query, https://doh.pub/dns-query'
|
||||
dns_fallback='https://cloudflare-dns.com/dns-query, https://dns.google/dns-query, https://doh.opendns.com/dns-query'
|
||||
dns_resolver='https://223.5.5.5/dns-query, 2400:3200::1'
|
||||
setconfig dns_nameserver "'$dns_nameserver'"
|
||||
setconfig dns_fallback "'$dns_fallback'"
|
||||
setconfig dns_resolver "'$dns_resolver'"
|
||||
fi
|
||||
#启用推荐的自动任务配置
|
||||
. "$CRASHDIR"/menus/5_task.sh && task_recom
|
||||
#小米设备软固化
|
||||
|
||||
Reference in New Issue
Block a user