openvpn: autostart openvpn instances for each .conf file in /etc/openvpn
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 7 Feb 2015 21:01:28 +0000 (21:01 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 7 Feb 2015 21:01:28 +0000 (21:01 +0000)
commit848b0f05972047ba20015dc83c62c2c1da8d8d84
tree167f15be1e3a57f47d7d592d808ade47fbab290b
parentbe79b667ee54b0d62ac079f68e3bcedc6e6d9133
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44310 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/network/services/openvpn/Makefile
package/network/services/openvpn/files/openvpn.init