summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-04-16 18:29:42 +0000
committerErmal Luçi <eri@pfsense.org>2008-04-16 18:29:42 +0000
commit6dd9b0154e4da222d12b814e4338b1181296df77 (patch)
treed34a26d986f99f74a09f4b184150fa6b1c12df62 /etc/inc/pfsense-utils.inc
parent6a74c90e9d12a5ad6e8b16e8c22fa60b658f0a85 (diff)
downloadpfsense-6dd9b0154e4da222d12b814e4338b1181296df77.zip
pfsense-6dd9b0154e4da222d12b814e4338b1181296df77.tar.gz
First try to cope with the new ability of mpd to rename its interfaces.
This is just a s/ng0/typeof connection0/ for now. The major work should be done to allow all optX and lan to be pppoe or pptp interafaces and take just assign the network interface accordingly. It simplifies a lot o things but this has to be done. This would propperly identifying interfaces and not hardcoding names around.
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index e153153..8c0228d 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1783,7 +1783,7 @@ 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";
+ return "pppoe0";
if(isset($config['interfaces'][$interface]['pointtopoint']))
return "ppp0";
$lc_interface = strtolower($interface);
@@ -4056,4 +4056,4 @@ function lookup_gateway_interface_by_name($name) {
}
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud