mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 14:20:31 +01:00
Handle another smartctl output format https://sourceforge.net/p/webadmin/bugs/5120
This commit is contained in:
@@ -317,7 +317,8 @@ if (&get_smart_version() > 5.0) {
|
||||
# Not enabled!
|
||||
$rv{'enabled'} = 0;
|
||||
}
|
||||
if ($device =~ /^\/dev\/nvme/ && $out =~ /Model Number:/i) {
|
||||
if ($device =~ /^\/dev\/nvme/ &&
|
||||
$out =~ /(Model\s+Number|Device\s+Model):/i) {
|
||||
# For NVME devices, surprisingly smart support/enabled info is
|
||||
# not shown. So assume they work
|
||||
$rv{'support'} = 1;
|
||||
|
||||
Reference in New Issue
Block a user