From 39c9da564bcba485e23d622dd04929a07409f531 Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Fri, 6 Oct 2023 19:45:58 +0100 Subject: [PATCH] Update force-auth-purpleinternal.sh --- Mac/force-auth-purpleinternal.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Mac/force-auth-purpleinternal.sh b/Mac/force-auth-purpleinternal.sh index 514454f..be05627 100644 --- a/Mac/force-auth-purpleinternal.sh +++ b/Mac/force-auth-purpleinternal.sh @@ -77,6 +77,7 @@ sleep 12 # PING GOOGLE FOR NEXT CHECK PING1=$(ping -c 1 "$IP1" | grep -c from) +echo Using "$IP2" as Tailscale connected check # PING TAILSCALE VPR FOR FIRST ATTEMPT PING2=$(ping -c 1 "$IP2" | grep -c from) @@ -112,11 +113,11 @@ else killall Tailscale sleep 5 runAsUser osascript -e 'tell application "Tailscale"' -e 'activate' -e 'end tell' - sleep 20 + sleep 7 runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale up --authkey "$TAILSCALEAUTHKEY" --hostname "$TSUSER" echo fi - +sleep 25 # PING TAILSCALE VPR AFTER FIRST ATTEMPT PING3=$(ping -c 1 "$IP2" | grep -c from)