summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorgnhb <gnoahb@gmail.com>2010-05-11 15:41:01 +0700
committergnhb <gnoahb@gmail.com>2010-05-11 15:41:01 +0700
commit0810c115f42151234545be2560feea97f4c3efec (patch)
tree40280d93d877870f7de37fea8c4c64eec6b6f08c /etc/inc/interfaces.inc
parent766bd6d083d1ad15d5a285901eb172181c7eb216 (diff)
downloadpfsense-0810c115f42151234545be2560feea97f4c3efec.zip
pfsense-0810c115f42151234545be2560feea97f4c3efec.tar.gz
Fix up final bits of PPPoE Periodic reset and disable setting of bandwidths for mlppp links for now.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc12
1 files changed, 2 insertions, 10 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 4fde54d..29a3464 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -817,13 +817,10 @@ function interface_bring_down($interface = "wan", $destroy = false) {
$realif = get_real_interface($interface);
switch ($ifcfg['ipaddr']) {
+ case "ppp":
case "pppoe":
- killbypid("{$g['varrun_path']}/pppoe_{$interface}.pid");
- sleep(2);
- unlink_if_exists("{$g['varetc_path']}/mpd_{$interface}.conf");
- break;
case "pptp":
- killbypid("{$g['varrun_path']}/pptp_{$interface}.pid");
+ killbypid("{$g['varrun_path']}/{$ifcfg['ipaddr']}_{$interface}.pid");
sleep(2);
unlink_if_exists("{$g['varetc_path']}/mpd_{$interface}.conf");
break;
@@ -844,11 +841,6 @@ function interface_bring_down($interface = "wan", $destroy = false) {
mwexec("/usr/sbin/arp -d -i {$realif} -a");
}
break;
- case "ppp":
- killbypid("{$g['varrun_path']}/ppp_{$interface}.pid");
- sleep(2);
- unlink_if_exists("{$g['varetc_path']}/mpd_{$interface}.conf");
- break;
default:
if(does_interface_exist("$realif")) {
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete", true);
OpenPOWER on IntegriCloud