Error when trying to connect to VPN on startup

view story

http://askubuntu.com – I am trying to set up my Mythbuntu computer to connect to a VPN service when it starts up. My hope is that the Mythbuntu computer will always use the VPN for all of its internet connections. I found a script that will supposedly do that, and it looks like this: #!/bin/bash while [ "true" ] do VPNCON=$(nmcli con status) if [[ $VPNCON != "*MyVPNConnectionName*" ]]; then echo "Disconnected, trying to reconnect..." (sleep 1s && nmcli con up uuid df648abc-d8f7-4ce4-bdd6-3e12cdf0f494) else echo "Already connected !" fi sleep 30 done When I run (HowTos)