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')" \