2015-03-06, 00:29
I've got a Pi2 running Openelec 5.0.5, and an account with Private Internet Access.
I've set up my vpn (with PIA) using the instructions here (brianhornsby.com/blog/how-to-setup-your-vpn-client), which worked flawlessly.
I'm now trying to get it to automatically connect on boot.
I've searched a number of threats and using autostart.sh seems to be the easiest way. So I created an autostart.sh file and included the following code:
#!/bin/sh
openvpn /storage/Configfiles/vpn-config/france.ovpn &
sleep 5
But it's not connecting. I expect it's got something to do with me not supplying my credentials (which are in a pass.txt file), but I can't see how to do this.
Has anyone got any advice?
Thanks,
I've set up my vpn (with PIA) using the instructions here (brianhornsby.com/blog/how-to-setup-your-vpn-client), which worked flawlessly.
I'm now trying to get it to automatically connect on boot.
I've searched a number of threats and using autostart.sh seems to be the easiest way. So I created an autostart.sh file and included the following code:
#!/bin/sh
openvpn /storage/Configfiles/vpn-config/france.ovpn &
sleep 5
But it's not connecting. I expect it's got something to do with me not supplying my credentials (which are in a pass.txt file), but I can't see how to do this.
Has anyone got any advice?
Thanks,