~增加crash -d命令,可以更简洁的debug执行时的错误信息

~为padavan设备增加了启动服务后自动保存mtd的功能
~优化singbox配置文件覆写,增强对各种第三方配置文件的普适性
~当自动任务启用同步ntp服务时,不再启动singbox内置的ntp模块
~singbox内置ntp模块移除了指定出口以增强普适性,但效果有待观察
~适配singbox1.7.8版本的mix模式
~修复各种类型的找不到内核或者内核下载失败问题
~修复使用默认dns时singbox内核提示dns出错的bug
~修复sed -e报错
This commit is contained in:
juewuy
2024-02-03 22:19:04 +08:00
parent 5ec99ebcff
commit 318cca0716
8 changed files with 120 additions and 88 deletions

View File

@@ -51,7 +51,7 @@ update_core(){ #自动更新内核
mkdir -p ${TMPDIR}/core_new
tar -zxf "${TMPDIR}/core_new.tar.gz" -C ${TMPDIR}/core_new/ &>/dev/null || tar -zxf "${TMPDIR}/core_new.tar.gz" --no-same-owner -C ${TMPDIR}/core_new/
for file in $(find ${TMPDIR}/core_tmp 2>/dev/null);do
[ -s $file ] && [ -n "$(echo $file | sed 's#.*/##' | grep -iE '(CrashCore|sing|meta|mihomo|clash|premium)')" ] && mv -f $file ${TMPDIR}/core_new
[ -f $file ] && [ -n "$(echo $file | sed 's#.*/##' | grep -iE '(CrashCore|sing|meta|mihomo|clash|premium)')" ] && mv -f $file ${TMPDIR}/core_new
done
rm -rf ${TMPDIR}/core_new
}