From 0d1503327c0e59192f4dd811aa8cc6fdcac83b3a Mon Sep 17 00:00:00 2001 From: yu1chaofan <1416638454@qq.com> Date: Tue, 17 Oct 2023 11:40:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E8=A7=A3=E5=86=B3zt=E5=BC=80?= =?UTF-8?q?=E6=9C=BA=E4=B8=8D=E8=83=BD=E8=87=AA=E5=8A=A8=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/service.sh b/service.sh index 31a056e..2a6b643 100644 --- a/service.sh +++ b/service.sh @@ -4,6 +4,14 @@ MODDIR=${0%/*} cd /data/adb/zerotier +# 检测网络是否连接 +while ! ping -c 1 -W 1 qq.com; do + echo "等待网络连接..." + sleep 5 +done + +# 当网络连接后,执行脚本 sh ./add_ip_rule.sh sh ./start.sh +sleep 30 sh ./join.sh