This commit adds the possibility that an OpenVPN instance located under
'/etc/openvpn' can also be started with the command.
'/etc/init.d/openvpn start <name>'
Signed-off-by: Florian Eckert <[email protected]>
config_load 'openvpn'
if [ -n "$instance" ]; then
- [ "$instance_found" -gt 0 ] || return
- start_uci_instance "$instance"
+ if [ "$instance_found" -gt 0 ]; then
+ start_uci_instance "$instance"
+ else
+ start_path_instance "$instance"
+ fi
else
config_foreach start_uci_instance 'openvpn'