Use nm-online

This commit is contained in:
Daniel Gonzalez Gasull 2018-07-02 15:55:53 +08:00 committed by GitHub
parent 82b14042de
commit ac58fb4c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/`.