From c8b19dd32fab5717e43750406ce25e1e1dc887c0 Mon Sep 17 00:00:00 2001 From: Ermal Date: Sat, 27 Mar 2010 01:10:52 +0000 Subject: Fix killing mpd process for ppp. --- etc/inc/interfaces.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'etc/inc/interfaces.inc') 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"); } -- cgit v1.1