openvpn: autostart openvpn instances for each .conf file in /etc/openvpn
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 7 Feb 2015 21:01:28 +0000 (21:01 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 7 Feb 2015 21:01:28 +0000 (21:01 +0000)
commitccc33238a418bfacf6a7f97433e092fe72e9f74b
treecd6c662143a5a8302c6fabc287454e647658182e
parentfcfbbfc3859723dbc27dcf211d0e12eef30f38f8
openvpn: autostart openvpn instances for each .conf file in /etc/openvpn

Align init behaviour with other distros by starting an OpenVPN instance
for each config file found in /etc/openvpn/. This removes the additional
requirement to "register" the configs with uci and thus simplifies the
setup.

Make sure to respect the disabled state in uci to not suddenly autostart
instances which have been previously set to disabled, also skip configs
which are already started due to uci configuration.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 44310
package/network/services/openvpn/Makefile
package/network/services/openvpn/files/openvpn.init