diff options
author | jim-p <jimp@pfsense.org> | 2014-11-04 15:49:00 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-11-04 15:49:54 -0500 |
commit | ea20169a38b555288416cdcbd86d4cd83b380b8b (patch) | |
tree | 19a440b4e91d919cda0f69dced4a6bbc0134f811 /usr/local/www/diag_smart.php | |
parent | 0810a719e903cef1d48fc94821ee6aa8ac8073fd (diff) | |
download | pfsense-ea20169a38b555288416cdcbd86d4cd83b380b8b.zip pfsense-ea20169a38b555288416cdcbd86d4cd83b380b8b.tar.gz |
Use a better method of finding disks for SMART.
Old code was inaccurate and also listed entries that were symlinks to other disks
Diffstat (limited to 'usr/local/www/diag_smart.php')
-rw-r--r-- | usr/local/www/diag_smart.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/local/www/diag_smart.php b/usr/local/www/diag_smart.php index 2cbc60b..a8bfd3e 100644 --- a/usr/local/www/diag_smart.php +++ b/usr/local/www/diag_smart.php @@ -276,8 +276,7 @@ switch($action) { // Default page, prints the forms to view info, test, etc... 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\|ada\)[0-9]\{1,2\}$'", $devs); + $devs = get_smart_drive_list(); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="default page"> <tr> |