mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-10 23:41:22 +00:00
~增加小米设备/data/auto_start.sh文件,用于自定义开机启动项 ~增加Mihomo内核默认启用统一延迟功能 ~优化默认DNS,现在会默认使用localhost(如果可用)而不是阿里dns ~优化子菜单加载效率 ~优化部分设备的tun加载流程,修复因为未加载tun模块而导致的启动报错 ~优化dns界面显示 ~修复因为文件拆分路径改变导致的加载失败的一系列bug ~修复局域网过滤白名单失效的bug(需要重新启用) ~修复自定义入站启用失败的bug ~修复前台测试内核运行命令报错的bug ~修复卸载时的意外报错
20 lines
517 B
Bash
20 lines
517 B
Bash
|
|
. "$CRASHDIR"/libs/set_cron.sh
|
|
|
|
bot_tg_start(){
|
|
bot_tg_stop
|
|
. "$CRASHDIR"/starts/start_legacy.sh
|
|
start_legacy "$CRASHDIR/menus/bot_tg.sh" 'bot_tg'
|
|
bot_tg_cron
|
|
}
|
|
bot_tg_stop(){
|
|
cronset 'TG_BOT守护进程'
|
|
[ -f "$TMPDIR/bot_tg.pid" ] && kill -TERM "$(cat "$TMPDIR/bot_tg.pid")"
|
|
killall bot_tg.sh 2>/dev/null
|
|
rm -f "$TMPDIR/bot_tg.pid"
|
|
}
|
|
bot_tg_cron(){
|
|
cronset 'TG_BOT守护进程'
|
|
cronset 'TG_BOT守护进程' "* * * * * /bin/sh $CRASHDIR/starts/start_legacy_wd.sh bot_tg #ShellCrash-TG_BOT守护进程"
|
|
}
|