summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-22 19:51:12 +0000
committerErmal <eri@pfsense.org>2010-12-22 19:51:12 +0000
commita8d6ac1aecae077589dff92ce09cf468b859b41b (patch)
tree0236ff80709ea0b3eb072cab31ab23f24be9135c /etc
parenta3ccdf6e116e94513d698cf626051e7de02f9cef (diff)
downloadpfsense-a8d6ac1aecae077589dff92ce09cf468b859b41b.zip
pfsense-a8d6ac1aecae077589dff92ce09cf468b859b41b.tar.gz
Ticket #757. Use correct pidfile.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 4608951..91630c5 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -917,8 +917,8 @@ function interface_bring_down($interface = "wan", $destroy = false) {
if (is_array($config['ppps']['ppp']) && count($config['ppps']['ppp'])) {
foreach ($config['ppps']['ppp'] as $pppid => $ppp) {
if ($realif == $ppp['if']) {
- if (file_exists("{$g['varrun_path']}/{$ifcfg['ipaddr']}_{$interface}.pid")) {
- killbypid("{$g['varrun_path']}/{$ifcfg['ipaddr']}_{$interface}.pid");
+ if (file_exists("{$g['varrun_path']}/{$ppp['type']}_{$interface}.pid")) {
+ killbypid("{$g['varrun_path']}/{$ppp['type']}_{$interface}.pid");
sleep(5);
}
unlink_if_exists("{$g['varetc_path']}/mpd_{$interface}.conf");
@@ -3601,4 +3601,4 @@ function get_vip_descr($ipaddress) {
return "";
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud