PIA-VPN.sh 239 Bytes
Newer Older
Josh Sisto's avatar
Josh Sisto committed
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

/usr/bin/expect <(cat << EOF
spawn sudo openvpn --config ca-aes-256-gcm-udp-dns.ovpn
expect "Enter Auth Username:"
send "PIAUSERNAME\r"
expect "Enter Auth Password: (press TAB for no echo)"
send "PIAPASSWORD\r"
interact
EOF
)