PDA

View Full Version : autostart openvpn



rossi2000
11-06-11, 21:18
evening folks

ive been playing with a bare openpli 2.0 image and adding things as i go.
ive succesfully installed openvpn along with related packages eg kernal-tun etc

i can start and stop the service no problems in telnet and it all works.

these are the commands to start

modprobe tun
openvpn /etc/openvpn/client.conf


im having troubles trying to find where to add these lines to make it autostart on bootup, ive tried adding it to bootmisc.sh but ended up causing a mess and had to re-flash lol.

can anyone advise? :)

tia

rossi2000
12-06-11, 00:14
actually i forgot that the openvpn script can be called from /etc/init.d

/etc/init.d/openvpn start
but im still not sure where to add that to to make it start on bootup

11ben11
06-08-11, 18:14
Hi Rossi2000

Did you ever get a response to your question?
As i am having issues trying to do the same thing.

Thanks