diff options
author | Ermal <eri@pfsense.org> | 2010-08-03 22:11:13 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-03 22:11:31 +0000 |
commit | 5cb5063c39d352fb7d8f089993e7238939cb2489 (patch) | |
tree | baae44a41dfc64453248474dd7fa40c0bab28da7 /usr | |
parent | b000f96faa31e538d8ca4420fa25b58b8f37aff4 (diff) | |
download | pfsense-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')
-rw-r--r-- | usr/local/www/interfaces_ppps_edit.php | 6 |
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)) |