Revision 92a1c8e6
Added by Ermal LUÇI over 14 years ago
etc/inc/interfaces.inc | ||
---|---|---|
118 | 118 |
} |
119 | 119 |
|
120 | 120 |
$realif = get_real_interface($interface); |
121 |
if ($found == true) |
|
122 |
pfSense_ngctl_attach(".", $realif); |
|
123 |
else |
|
121 |
if ($found == false) |
|
124 | 122 |
pfSense_ngctl_detach("{$realif}:", $realif); |
123 |
/* NOTE: We make sure for this on interface_ppps_configure() |
|
124 |
* no need to do it here agan. |
|
125 |
* else |
|
126 |
* pfSense_ngctl_attach(".", $realif); |
|
127 |
*/ |
|
125 | 128 |
} |
126 | 129 |
|
127 | 130 |
function interfaces_loopback_configure() { |
... | ... | |
1153 | 1156 |
to obtain an address first so we can write it in the mpd .conf file for PPTP and L2TP configs |
1154 | 1157 |
*/ |
1155 | 1158 |
foreach($ports as $pid => $port){ |
1159 |
pfSense_ngctl_attach(".", $port); |
|
1156 | 1160 |
switch ($ppp['type']) { |
1157 | 1161 |
case "pppoe": |
1158 | 1162 |
/* Bring the parent interface up */ |
... | ... | |
1482 | 1486 |
conf_mount_ro(); |
1483 | 1487 |
} |
1484 | 1488 |
} |
1485 |
|
|
1489 |
|
|
1486 | 1490 |
/* fire up mpd */ |
1487 | 1491 |
mwexec("/usr/local/sbin/mpd5 -b -k -d {$g['varetc_path']} -f mpd_{$interface}.conf -p {$g['varrun_path']}/{$ppp['type']}_{$interface}.pid -s ppp {$ppp['type']}client"); |
1488 | 1492 |
|
Also available in: Unified diff
Unbreak pppoe clients. Pointy-hat: myself