diff --git a/agents/plugins/smart b/agents/plugins/smart index b8a70899ccd..b0e929762cf 100755 --- a/agents/plugins/smart +++ b/agents/plugins/smart @@ -109,6 +109,11 @@ main() { # 2012-01-25 Stefan Kaerst CDJ - in case $N does not exist VEND=ATA fi + # Check if "nvme" is in $N + # some nvme disks can be misclassified as ATA with the above + if [[ "$N" == *nvme* ]]; then + VEND=NVME + fi if [ -r "$BLOCK_PATH"/"$N"/device/model ]; then MODEL=$(sed -e 's/ /_/g' -e 's/_*$//g' <"$BLOCK_PATH"/"$N"/device/model) else