Merge branch 'master' of https://github.com/juewuy/ShellClash into master

This commit is contained in:
juewuy
2023-05-01 16:16:40 +08:00
10 changed files with 30585 additions and 38071 deletions

View File

@@ -36,9 +36,10 @@ tunfix(){
init(){
#等待启动完成
log_file=$(uci get system.@system[0].log_file)
local i=0
while [ "$i" -lt 20 ]; do
sleep 3
[ -z "$(grep 'init complete' $log_file)" ] && i=20 || i=$((i + 1))
[ -n "$(grep 'init complete' $log_file)" ] && i=20 || i=$((i + 1))
done
#初始化环境变量
sed -i "/alias clash/d" $profile