From faeb9aca253711bcad6b3e4a915f9f4dec7decee Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 9 Nov 2015 12:13:43 +0545 Subject: interfaces_pps_edit use latest GLOB from RELENG_2_2 Use the latest cua* glob from the code in RELENG_2_2 that was "recently" modified to get this right. Remove the debug version that looked for "tty" so that people can use it on real systems now. Forum thread: https://forum.pfsense.org/index.php?topic=102111.0 --- src/usr/local/www/interfaces_ppps_edit.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/usr') diff --git a/src/usr/local/www/interfaces_ppps_edit.php b/src/usr/local/www/interfaces_ppps_edit.php index 285ea7f..f396d4e 100644 --- a/src/usr/local/www/interfaces_ppps_edit.php +++ b/src/usr/local/www/interfaces_ppps_edit.php @@ -559,9 +559,7 @@ function build_link_list() { mwexec("/bin/mkdir -p /var/spool/lock"); if($pconfig['type'] == 'ppp') { - $serialports = glob("/dev/cua?[0-9]{,.[0-9]}", GLOB_BRACE); - //DEBUG - $serialports = glob("/dev/tty?[0-9]{,.[0-9]}", GLOB_BRACE); + $serialports = glob("/dev/cua[a-zA-Z][0-9]{,.[0-9],.[0-9][0-9],[0-9],[0-9].[0-9],[0-9].[0-9][0-9]}", GLOB_BRACE); $serport_count = 0; -- cgit v1.1