diff options
author | jim-p <jimp@pfsense.org> | 2011-02-16 11:31:21 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-02-16 11:31:21 -0500 |
commit | 3e8b3cccab55f02be654ba342ac9d0e02c719d78 (patch) | |
tree | 353b2c7eb9d0d4f1cf58c47d649f73a79e6ef922 /usr/local | |
parent | 2d816c13579c53925a9f3a0571bc57cf7aa28267 (diff) | |
download | pfsense-3e8b3cccab55f02be654ba342ac9d0e02c719d78.zip pfsense-3e8b3cccab55f02be654ba342ac9d0e02c719d78.tar.gz |
Use a better regex here, sometimes ad devices can be numbered >=10.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/diag_smart.php | 2 |
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> |