summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-05-06 21:43:57 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-05-06 21:43:57 +0000
commit017ceb5e2d69347e48314be01e4f69483418961d (patch)
tree186f3af9c01445082dffd1777df7738105c2a172 /etc/inc
parent5b552ac79ebe14f5ab7e31677c15bf8bb063ba6a (diff)
downloadpfsense-017ceb5e2d69347e48314be01e4f69483418961d.zip
pfsense-017ceb5e2d69347e48314be01e4f69483418961d.tar.gz
Return the virtual interface for PPPoE
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index d8b8b98..6c681af 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1691,6 +1691,8 @@ function execute_command_return_output($command) {
*/
function convert_friendly_interface_to_real_interface_name($interface) {
global $config;
+ if($config['interfaces'][$interface]['ipaddr'] == "pppoe")
+ return "ng0";
$lc_interface = strtolower($interface);
if($lc_interface == "lan") return $config['interfaces']['lan']['if'];
if($lc_interface == "wan") return $config['interfaces']['wan']['if'];
OpenPOWER on IntegriCloud