mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
net/upnp: switch to mwexecf variants
PR: https://github.com/opnsense/core/issues/9325
This commit is contained in:
parent
4b8549f7dd
commit
5962dc7c18
2 changed files with 4 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
|||
PLUGIN_NAME= upnp
|
||||
PLUGIN_VERSION= 1.7
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_DEPENDS= miniupnpd
|
||||
PLUGIN_COMMENT= Universal Plug and Play (UPnP IGD & PCP/NAT-PMP) Service
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
|
|
|||
|
|
@ -75,15 +75,15 @@ function miniupnpd_start()
|
|||
return;
|
||||
}
|
||||
|
||||
mwexec_bg('/usr/local/sbin/miniupnpd -f /var/etc/miniupnpd.conf -P /var/run/miniupnpd.pid');
|
||||
mwexecf_bg('/usr/local/sbin/miniupnpd -f %s -P %s', [ '/var/etc/miniupnpd.conf', '/var/run/miniupnpd.pid']);
|
||||
}
|
||||
|
||||
function miniupnpd_stop()
|
||||
{
|
||||
killbypid('/var/run/miniupnpd.pid');
|
||||
|
||||
mwexec('/sbin/pfctl -aminiupnpd -Fr 2>&1 >/dev/null');
|
||||
mwexec('/sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null');
|
||||
mwexecf('/sbin/pfctl -a miniupnpd -Fr');
|
||||
mwexecf('/sbin/pfctl -a miniupnpd -Fn');
|
||||
}
|
||||
|
||||
function miniupnpd_configure()
|
||||
|
|
|
|||
Loading…
Reference in a new issue