openvpn: Added option to not start the native OpenVPN configurations on boot
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 20 Dec 2023 13:20:13 +0000 (14:20 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 20 Dec 2023 14:01:46 +0000 (15:01 +0100)
commit053e588162a8c559e1c1731cb8bf8d109576ca25
treed8f036de6fce1772844e706f38fb913c2f1c3ddc
parent9a27865acbcd08acc703d0e9412a6fe93c12d4b6
openvpn: Added option to not start the native OpenVPN configurations on boot

OpenVPN configurations that have a uci entry, the enable/enabled option can
be used to control whether the OpenVPN connection should be started at
system startup or not.

OpenVPN configurations that are located under '/etc/openvpn/' are always
started at system boot. To ensure that these connections can also be
started later, they must 'not' be started automatically during system boot.
This can be prevented with the following entry in the OpenVPN configuration.

config globals 'globals'
option autostart '0'

These OpenVPN configurations can then be started later with the command.
'/etc/init.d/openvpn start <name>'

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/openvpn/files/openvpn.init