openvpn: rename start_instance to start_uci_instance
Preparation commit to make it clear that this is a uci configuration. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
14bed0f1ef
commit
01d8f5c9be
|
@ -171,7 +171,7 @@ openvpn_add_instance() {
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
||||||
start_instance() {
|
start_uci_instance() {
|
||||||
local s="$1"
|
local s="$1"
|
||||||
|
|
||||||
config_get config "$s" config
|
config_get config "$s" config
|
||||||
|
@ -226,9 +226,9 @@ start_service() {
|
||||||
|
|
||||||
if [ -n "$instance" ]; then
|
if [ -n "$instance" ]; then
|
||||||
[ "$instance_found" -gt 0 ] || return
|
[ "$instance_found" -gt 0 ] || return
|
||||||
start_instance "$instance"
|
start_uci_instance "$instance"
|
||||||
else
|
else
|
||||||
config_foreach start_instance 'openvpn'
|
config_foreach start_uci_instance 'openvpn'
|
||||||
|
|
||||||
local path name up down
|
local path name up down
|
||||||
for path in /etc/openvpn/*.conf; do
|
for path in /etc/openvpn/*.conf; do
|
||||||
|
|
Loading…
Reference in New Issue