mirror of
https://github.com/unraid/webgui.git
synced 2026-04-22 10:08:25 -05:00
Include nvme disks in SMART report of diagnostics
This commit is contained in:
@@ -147,7 +147,7 @@ else
|
||||
// create SMART reports (suppress errors)
|
||||
$disks = file_exists("$get/disks.ini") ? parse_ini_file("$get/disks.ini", true) : [];
|
||||
include_once '/usr/local/emhttp/webGui/include/CustomMerge.php';
|
||||
exec("ls -l /dev/disk/by-id/[asu]* 2>/dev/null|grep -v -- -part|sed 's:^.*/by-id/[^-]*-::;s:-> ../../::'", $devices);
|
||||
exec("ls -l /dev/disk/by-id/[asun]* 2>/dev/null|sed '/-part/d;s:^.*/by-id/[^-]*-::;s:-> ../../::'", $devices);
|
||||
foreach ($devices as $device) {
|
||||
list($name,$dev) = explode(' ',$device);
|
||||
$type = '';
|
||||
|
||||
Reference in New Issue
Block a user