From 88b44a4b76b0653c846da0aa4b878be7c47afb4d Mon Sep 17 00:00:00 2001 From: gunix Date: Mon, 2 Nov 2020 01:47:31 +0200 Subject: [PATCH] fixed #32 --- connect_to_wireguard_with_token.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/connect_to_wireguard_with_token.sh b/connect_to_wireguard_with_token.sh index 1f7c14e..f09ed8c 100755 --- a/connect_to_wireguard_with_token.sh +++ b/connect_to_wireguard_with_token.sh @@ -151,14 +151,22 @@ if [ "$PIA_PF" != true ]; then exit fi -echo " -This script got started with PIA_PF=true. -Starting procedure to enable port forwarding by running the following command: +echo -n " +This script got started with PIA_PF=true. We will allow WireGuard to fully +initialize and after that we will try to enable PF by running the following +command: $ PIA_TOKEN=$PIA_TOKEN \\ PF_GATEWAY=\"$(echo "$wireguard_json" | jq -r '.server_vip')\" \\ PF_HOSTNAME=\"$WG_HOSTNAME\" \\ ./port_forwarding.sh -" + +Starting PF in " +for i in {5..1}; do + echo -n "$i... " + sleep 1 +done +echo +echo PIA_TOKEN=$PIA_TOKEN \ PF_GATEWAY="$(echo "$wireguard_json" | jq -r '.server_vip')" \