mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correctly move upnp to base since LiveCD cannot write files to /usr/local/etc or /usr/local/etc/rc.d/
This commit is contained in:
parent
6f20377b6f
commit
daf52412e8
@ -11,8 +11,19 @@
|
||||
function upnp_warn ($msg) { syslog(LOG_WARNING, "miniupnpd: {$msg}"); return; }
|
||||
|
||||
function upnp_action ($action) {
|
||||
if (file_exists(UPNP_RCFILE))
|
||||
mwexec(UPNP_RCFILE.' '.$action);
|
||||
switch($action) {
|
||||
case "start":
|
||||
mwexec("killall miniupnpd 2>/dev/null");
|
||||
upnp_start();
|
||||
break;
|
||||
case "stop":
|
||||
mwexec("killall miniupnpd");
|
||||
break;
|
||||
case "restart":
|
||||
mwexec("killall miniupnpd");
|
||||
upnp_start();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function upnp_running () {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user