Some versions of Synology DSM would get wrong SMART info while using HBA card, and this script can fix it. (Not for showing the SMART info on DSM7.2.1 or later)
Useage:
-
Rename the smartctl in
/bin
to smartctl-binary.mv /bin/smartctl /bin/smartctl-binary
-
Copy this smartctl to
/bin
-
chmod +x /bin/smartctl
Principle: RedPill-TTG/redpill-lkm#14 (comment)