net/tayga: use NAME_setup

PR: https://github.com/opnsense/core/issues/5917
This commit is contained in:
Franco Fichtner
2022-10-21 09:52:40 +02:00
parent 327f006aea
commit 596b8762c2
2 changed files with 7 additions and 11 deletions
@@ -1,22 +1,18 @@
[start]
command:/usr/local/etc/rc.d/opnsense-tayga start; /usr/local/etc/rc.routing_configure
parameters:
type:script_output
message:starting tayga
[stop]
command:/usr/local/etc/rc.d/opnsense-tayga stop
parameters:
type:script_output
message:stopping tayga
[start]
command:
/usr/local/opnsense/scripts/OPNsense/Tayga/setup.sh;
/usr/local/etc/rc.d/opnsense-tayga start;
/usr/local/etc/rc.routing_configure
parameters:
type:script_output
message:starting tayga
[restart]
command:
/usr/local/etc/rc.d/opnsense-tayga stop;
/usr/local/opnsense/scripts/OPNsense/Tayga/setup.sh;
/usr/local/etc/rc.d/opnsense-tayga start;
/usr/local/etc/rc.routing_configure
parameters:
@@ -1,5 +1,5 @@
{% if helpers.exists('OPNsense.tayga.general.enabled') and OPNsense.tayga.general.enabled == '1' %}
tayga_var_script="/usr/local/opnsense/scripts/OPNsense/Tayga/setup.sh"
tayga_script="/usr/local/opnsense/scripts/OPNsense/Tayga/setup.sh"
tayga_enable="YES"
tayga_v4address={{ OPNsense.tayga.general.v4address }}
tayga_v4destination={{ OPNsense.tayga.general.v4destination }}