I can not make openvpn start automatically when I start my dreambox 800 with openpli image . Any solution ?
Automatically start openvpn
Collapse
X
-
What command do you run at the moment to start openvpn?
2 ways of starting it as far as I know, the first is the hacky way which would be to edit one of the enigma2 startup file and edit the command in there, so for example the file /usr/bin/enigma2.sh.
The second way is the tidy way and that it to create a proper startup script. If you look in /etc/init.d you'll see script files, these are run on startup and shutdown. If you look through this folder you can use an existing file as a template to start off with. The folder /etc/rc3.d contains startup files, the folder /etc/rc0.d contains shutdown scripts. Startup scripts begin with an S and then a number, then the name of the script, shutdown scripts begin with a K, then a number, then the name of the script. For both startup and shutdown folders, they are just links to the actual file in /etc/init.d. The number for the linked file determines the order in which it will be executed.
Lot of typing above but if you look in the 3 folders I've named above it should be easier to see how it all works.
Comment