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)
commit6a61b200d89cd362fefbf4a7fa5a3493bb9ba8f1
tree167f15be1e3a57f47d7d592d808ade47fbab290b
parent905361b89cded32b4cd084e0f84fac219f145baf
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