From 1e57cb309042c3047893f807eb301849cc595772 Mon Sep 17 00:00:00 2001 From: iceBear67 Date: Mon, 6 Jul 2026 13:52:22 +0800 Subject: [PATCH] Revert "use ping for connectivity checkers" This reverts commit 29ee6c0bd54c915113c24294ad1f540941e515bd. --- image/overlay/etc/init.d/auth-server | 16 ---------------- image/overlay/etc/init.d/tsdns | 16 ---------------- 2 files changed, 32 deletions(-) diff --git a/image/overlay/etc/init.d/auth-server b/image/overlay/etc/init.d/auth-server index c33da84..d80abfb 100755 --- a/image/overlay/etc/init.d/auth-server +++ b/image/overlay/etc/init.d/auth-server @@ -6,22 +6,6 @@ output_log="/data/auth-server.log" pidfile="/run/${RC_SVCNAME}.pid" -start_pre() { - ebegin "Waiting for network" - - timeout=30 - - while [ $timeout -gt 0 ]; do - ip route | grep -q default && break - sleep 1 - timeout=$((timeout-1)) - done - - ip route | grep -q default || return 1 - - eend 0 -} - depend() { need net } diff --git a/image/overlay/etc/init.d/tsdns b/image/overlay/etc/init.d/tsdns index 268670a..5831fc1 100755 --- a/image/overlay/etc/init.d/tsdns +++ b/image/overlay/etc/init.d/tsdns @@ -4,22 +4,6 @@ depend() { need docker net } -start_pre() { - ebegin "Waiting for network" - - timeout=30 - - while [ $timeout -gt 0 ]; do - ip route | grep -q default && break - sleep 1 - timeout=$((timeout-1)) - done - - ip route | grep -q default || return 1 - - eend 0 -} - command="/usr/bin/tsdns" command_background=true pidfile="/run/${RC_SVCNAME}.pid"