summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-27 01:10:52 +0000
committerErmal <eri@pfsense.org>2010-03-27 01:10:52 +0000
commitc8b19dd32fab5717e43750406ce25e1e1dc887c0 (patch)
tree8a02d46c686b340ec969a887c55067151a40612a
parent65125e113ea5cb36f61a44fa97db64b3cabc8474 (diff)
downloadpfsense-c8b19dd32fab5717e43750406ce25e1e1dc887c0.zip
pfsense-c8b19dd32fab5717e43750406ce25e1e1dc887c0.tar.gz
Fix killing mpd process for ppp.
-rw-r--r--etc/inc/interfaces.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 3ad2b8b..c3595a6 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -853,8 +853,7 @@ function interface_bring_down($interface = "wan", $destroy = false) {
}
break;
case "ppp":
- killbypid("{$g['varrun_path']}/{$realif}.pid");
- sleep(2);
+ killbypid("{$g['varrun_path']}/ppp_{$interface}.pid");
break;
default:
if(does_interface_exist("$realif")) {
@@ -866,7 +865,7 @@ function interface_bring_down($interface = "wan", $destroy = false) {
}
if ($destroy == true) {
- if (preg_match("/^tun|^ppp|^ovpn|^gif|^gre|^lagg|^bridge|vlan/i", $realif))
+ if (preg_match("/^tun|^ovpn|^gif|^gre|^lagg|^bridge|vlan/i", $realif))
mwexec("/sbin/ifconfig {$realif} destroy");
}
OpenPOWER on IntegriCloud