diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-07-14 18:25:17 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-07-14 18:25:17 -0500 |
commit | ccf504fc30cd3661419dfe2972941afd54dba16f (patch) | |
tree | c27892c4db336060da84a1b8f498d5a6e863802d /usr | |
parent | e65ebe325ecb660d4641446e7122fb5133fb78dc (diff) | |
parent | cc4d13683e50595abc14efc43c91a087f123a979 (diff) | |
download | pfsense-ccf504fc30cd3661419dfe2972941afd54dba16f.zip pfsense-ccf504fc30cd3661419dfe2972941afd54dba16f.tar.gz |
Merge pull request #1752 from phil-davis/patch-9
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/interfaces_ppps_edit.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_ppps_edit.php b/usr/local/www/interfaces_ppps_edit.php index 035f915..89397f5 100644 --- a/usr/local/www/interfaces_ppps_edit.php +++ b/usr/local/www/interfaces_ppps_edit.php @@ -484,7 +484,12 @@ $types = array("select" => gettext("Select"), "ppp" => "PPP", "pppoe" => "PPPoE" mwexec("/bin/mkdir -p /var/spool/lock"); } // $serialports = pfSense_get_modem_devices(); - $serialports = glob("/dev/cua?[0-9]{,.[0-9]}", GLOB_BRACE); + // Match files in /dev starting with "cua" then: + // ? = any single character e.g. like "cuau" + // [0-9] = a digit from 0 to 9 + // {,[0-9]} = nothing (the empty before the comma) or a digit from 0 to 9 + // This supports up to 100 devices (0 to 99), e.g. cuau0 cuau1 ... cuau10 cuau11 ... cuau99 + $serialports = glob("/dev/cua?[0-9]{,[0-9]}", GLOB_BRACE); $serport_count = 0; foreach ($serialports as $port) { $serport_count++; |