Skip to content

Commit

Permalink
smartmon.sh: Support sntrealtek device type
Browse files Browse the repository at this point in the history
sntrealtek is a NVMe device behind a Realtek RTL9210 USB to
NVMe, output Looks like regular NVMe devices.
  • Loading branch information
kjetijor committed Feb 17, 2024
1 parent ef8c077 commit c3a7427
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions smartmon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit c3a7427

Please sign in to comment.