From c3a7427f18f0120efc460120a2e8c8ddb36e1ac4 Mon Sep 17 00:00:00 2001 From: Kjetil Joergensen Date: Fri, 16 Feb 2024 22:16:22 -0800 Subject: [PATCH] smartmon.sh: Support sntrealtek device type sntrealtek is a NVMe device behind a Realtek RTL9210 USB to NVMe, output Looks like regular NVMe devices. --- smartmon.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/smartmon.sh b/smartmon.sh index c20a850..b3419a9 100755 --- a/smartmon.sh +++ b/smartmon.sh @@ -195,6 +195,7 @@ for device in ${device_list}; do scsi) /usr/sbin/smartctl -A -d "${type}" "${disk}" | parse_smartctl_scsi_attributes "${disk}" "${type}" ;; megaraid*) /usr/sbin/smartctl -A -d "${type}" "${disk}" | parse_smartctl_scsi_attributes "${disk}" "${type}" ;; nvme*) /usr/sbin/smartctl -A -d "${type}" "${disk}" | parse_smartctl_scsi_attributes "${disk}" "${type}" ;; + sntrealtek) /usr/sbin/smartctl -A -d "${type}" "${disk}" | parse_smartctl_scsi_attributes "${disk}" "${type}" ;; usbprolific) /usr/sbin/smartctl -A -d "${type}" "${disk}" | parse_smartctl_attributes "${disk}" "${type}" ;; *) (>&2 echo "disk type is not sat, scsi, nvme or megaraid but ${type}")