diff options
author | Ermal <eri@pfsense.org> | 2010-12-20 16:43:26 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-20 16:43:26 +0000 |
commit | 92a1c8e6caca910ae1f8c54751bffebd45d87682 (patch) | |
tree | 6274b49b8054e8cb132994197da477e204014415 | |
parent | 10518768842dd70537def80911481d4bef36fb55 (diff) | |
download | pfsense-92a1c8e6caca910ae1f8c54751bffebd45d87682.zip pfsense-92a1c8e6caca910ae1f8c54751bffebd45d87682.tar.gz |
Unbreak pppoe clients. Pointy-hat: myself
-rw-r--r-- | etc/inc/interfaces.inc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index ebd365f..8687635 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -118,10 +118,13 @@ function interface_netgraph_needed($interface = "wan") { } $realif = get_real_interface($interface); - if ($found == true) - pfSense_ngctl_attach(".", $realif); - else + if ($found == false) pfSense_ngctl_detach("{$realif}:", $realif); + /* NOTE: We make sure for this on interface_ppps_configure() + * no need to do it here agan. + * else + * pfSense_ngctl_attach(".", $realif); + */ } function interfaces_loopback_configure() { @@ -1153,6 +1156,7 @@ function interface_ppps_configure($interface) { to obtain an address first so we can write it in the mpd .conf file for PPTP and L2TP configs */ foreach($ports as $pid => $port){ + pfSense_ngctl_attach(".", $port); switch ($ppp['type']) { case "pppoe": /* Bring the parent interface up */ @@ -1482,7 +1486,7 @@ EOD; conf_mount_ro(); } } - + /* fire up mpd */ 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"); |