~增加开机启动时的联网检测机制,以修复部分设备开机自启失败的问题
~尝试增加启动等待时长至10s ~将singbox内核DNS的默认reverse_mapping及independent_cache功能设置为false ~移除了wget命令的重试次数,以兼容更多设备 ~修复部分脚本语法错误
This commit is contained in:
@@ -193,7 +193,7 @@ start_core(){
|
||||
${CRASHDIR}/start.sh start
|
||||
#设置循环检测以判定服务启动是否成功
|
||||
i=1
|
||||
while [ -z "$test" -a "$i" -lt 5 ];do
|
||||
while [ -z "$test" -a "$i" -lt 10 ];do
|
||||
sleep 1
|
||||
if curl --version > /dev/null 2>&1;then
|
||||
test=$(curl -s http://127.0.0.1:${db_port}/configs | grep -o port)
|
||||
|
||||
Reference in New Issue
Block a user