diff --git a/files/plugins/v2.2.0p31/smart b/files/plugins/v2.2.0p31/smart index cb3e46a4443eca92f87785049ab81a05e829211f..a4e544c6743d0a8787f03a07fb03039c72a4cdd3 100755 --- a/files/plugins/v2.2.0p31/smart +++ b/files/plugins/v2.2.0p31/smart @@ -90,7 +90,7 @@ if inpath smartctl >/dev/null 2>&1; then echo '<<<smart>>>' SEEN= # don't use brace expansion here to stay POSIX conform - for D in /dev/disk/by-id/scsi-* /dev/disk/by-id/ata-* /dev/disk/by-id/nvme-*; do + for D in /dev/disk/by-id/scsi-[!0-9]* /dev/disk/by-id/scsi-[0-9]* /dev/disk/by-id/ata-* /dev/disk/by-id/nvme-*; do [ "$D" != "${D%scsi-\*}" ] && continue [ "$D" != "${D%ata-\*}" ] && continue [ "$D" != "${D%nvme-\*}" ] && continue @@ -157,7 +157,7 @@ if inpath smartctl >/dev/null 2>&1; then DNAME="${VEND}_${MODEL}_${SN}" fi else - CMD="smartctl -d ata -v 9,raw48 -A $D" + CMD="smartctl -v 9,raw48 -A $D" fi if [ "$VEND" == "NVME" ]; then