mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
openvpn: add possibility to start openvpn_path_instance on request
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 <fe@dev.tdt.de>
This commit is contained in:
@@ -263,8 +263,11 @@ start_service() {
|
||||
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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user