start Openvpn in rc.local always ask connection
Hi all, I need to start openvpn client in background when starting phone.
At the moment the faster solution I found is to add in rc.local :
#!/bin/sh
openvpn /etc/openvpn/client.conf &
and to set rc.local executable.
It works fine after a reboot but there is a issue, If the phone has no available internet connection (or If I don't want it to connect) it appears the "connection popup" (I don't know it's name) asking me to select a network connection. This is very annoying.
I'd like to keep openvpn running in background. It by default check with a certain interval to connect so when connection goes on it can connect by itself and it can disconnect when connection goes down.
Is there a way to avoid the asking of connection for specific applications?
If no, is there an alternative to start openvpn in background?
Thanks
Luca
can't you just create RPM with a script which would just switch openvpn (start/stop), you can then just tap on app icon to switch openvpn
virgi26 ( 2014-10-27 22:59:54 +0200 )editAs I told, I need it to start at boot time and run in background without "human interaction". This is also useful If I loose the phone. Passing throw my openvpn server I can reach my phone (if connected to a network) wherever it is...
Luca ( 2014-10-27 23:05:44 +0200 )editoh yes... i meant it just as an alternative=)
virgi26 ( 2014-10-27 23:14:05 +0200 )edit