summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_smart.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-02-16 11:31:21 -0500
committerjim-p <jimp@pfsense.org>2011-02-16 11:31:21 -0500
commit3e8b3cccab55f02be654ba342ac9d0e02c719d78 (patch)
tree353b2c7eb9d0d4f1cf58c47d649f73a79e6ef922 /usr/local/www/diag_smart.php
parent2d816c13579c53925a9f3a0571bc57cf7aa28267 (diff)
downloadpfsense-3e8b3cccab55f02be654ba342ac9d0e02c719d78.zip
pfsense-3e8b3cccab55f02be654ba342ac9d0e02c719d78.tar.gz
Use a better regex here, sometimes ad devices can be numbered >=10.
Diffstat (limited to 'usr/local/www/diag_smart.php')
-rw-r--r--usr/local/www/diag_smart.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_smart.php b/usr/local/www/diag_smart.php
index 05239fa..d3da72b 100644
--- a/usr/local/www/diag_smart.php
+++ b/usr/local/www/diag_smart.php
@@ -256,7 +256,7 @@ switch($action)
default:
{
// Get all AD* and DA* (IDE and SCSI) devices currently installed and stores them in the $devs array
- exec("ls /dev | grep '^[ad][da]*[0-9]$'", $devs);
+ exec("ls /dev | grep '^[ad][da][0-9]\{1,2\}$'", $devs);
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
OpenPOWER on IntegriCloud