summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_ppps_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-03 22:11:13 +0000
committerErmal <eri@pfsense.org>2010-08-03 22:11:31 +0000
commit5cb5063c39d352fb7d8f089993e7238939cb2489 (patch)
treebaae44a41dfc64453248474dd7fa40c0bab28da7 /usr/local/www/interfaces_ppps_edit.php
parentb000f96faa31e538d8ca4420fa25b58b8f37aff4 (diff)
downloadpfsense-5cb5063c39d352fb7d8f089993e7238939cb2489.zip
pfsense-5cb5063c39d352fb7d8f089993e7238939cb2489.tar.gz
Use the new pfSense module call to find the usable ports from the ones created on /dev.
Diffstat (limited to 'usr/local/www/interfaces_ppps_edit.php')
-rw-r--r--usr/local/www/interfaces_ppps_edit.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr/local/www/interfaces_ppps_edit.php b/usr/local/www/interfaces_ppps_edit.php
index 391f3f2..7f72950 100644
--- a/usr/local/www/interfaces_ppps_edit.php
+++ b/usr/local/www/interfaces_ppps_edit.php
@@ -420,13 +420,9 @@ $types = array("select" => gettext("Select"), "ppp" => "PPP", "pppoe" => "PPPoE"
<tr style="display:none" name="portlists" id="portlists">
<td id="serialports"><?php
$selected_ports = explode(',',$pconfig['interfaces']);
- $serial = glob("/dev/cua*");
- $modems = glob("/dev/modem*");
- $serialports = array_merge($serial, $modems);
+ $serialports = pfSense_get_modem_devices();
$serport_count = 0;
foreach ($serialports as $port) {
- if(preg_match("/\.(lock|init)$/", $port))
- continue;
$serport_count++;
echo $port.",".trim($port);
if (in_array($port,$selected_ports))
OpenPOWER on IntegriCloud