Skip to content

Commit

Permalink
Allow /dev/cuaU as well as /dev/cuau for serial ports.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennypage committed Nov 9, 2016
1 parent 153999c commit 9ab62fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sysutils/pfSense-pkg-nut/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PORTNAME= pfSense-pkg-nut
PORTVERSION= 2.7.4
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # empty
Expand Down
4 changes: 2 additions & 2 deletions sysutils/pfSense-pkg-nut/files/usr/local/www/nut_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@


$serial_ports = array();
$dlist = glob("/dev/cuau*");
$dlist = glob("/dev/cua[uU]*");
foreach ($dlist as $d) {
if (preg_match('/^\/dev\/cuau[0-9]+$/', $d)) {
if (preg_match('/^\/dev\/cua[uU][0-9]+$/', $d)) {
$serial_ports[$d] = $d;
}
}
Expand Down

0 comments on commit 9ab62fd

Please sign in to comment.