net/wireguard: monkey-patch rc script to bring back group association

This commit is contained in:
Franco Fichtner
2018-12-13 10:24:59 +01:00
parent 0c55fb01ec
commit 891cb2a1d0
2 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
PLUGIN_NAME= wireguard
PLUGIN_VERSION= 0.8
PLUGIN_REVISION= 1
PLUGIN_COMMENT= WireGuard VPN service
PLUGIN_DEPENDS= wireguard
PLUGIN_MAINTAINER= m.muenz@gmail.com
PLUGIN_DEVEL= yes
PLUGIN_DEVEL= yes
.include "../../Mk/plugins.mk"
@@ -10,6 +10,13 @@ wireguard_enable="YES"
{% endfor %}
{% endif %}
wireguard_interfaces="{{ activeservers | join(' ') }}"
start_postcmd=opnsense_postcmd
opnsense_postcmd()
{
for interface in ${wireguard_interfaces}; do
ifconfig ${interface} group wireguard
done
}
{% else %}
wireguard_enable="NO"
{% endif %}