From ac58fb4c9b720295e64ba73fd77a84ce7d1252fc Mon Sep 17 00:00:00 2001 From: Daniel Gonzalez Gasull Date: Mon, 2 Jul 2018 15:55:53 +0800 Subject: [PATCH] Use nm-online --- configuration/vpn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/vpn.md b/configuration/vpn.md index c7f7386c..6e8d3b6c 100644 --- a/configuration/vpn.md +++ b/configuration/vpn.md @@ -56,7 +56,7 @@ Set up a ProxyVM as a VPN gateway using NetworkManager ```bash # Automatically connect to the VPN once Internet is up - for i in {1..50}; do ping -c1 1.1.1.1 &> /dev/null && break; done + nm-online --quiet --wait-for-startup nmcli connection up file-vpn-conn passwd-file /rw/config/NM-system-connections/secrets/passwd-file.txt ``` You can find the actual "file-vpn-conn" in `/rw/config/NM-system-connections/`.