diff --git a/smartd-conf.py b/smartd-conf.py index 2fbc78a..4dfd2ff 100755 --- a/smartd-conf.py +++ b/smartd-conf.py @@ -53,7 +53,8 @@ for drive in drives: if float(getfile("/sys/module/libata/version")) < 1.20: comment = "# not yet supported in this kernel version\n# " if not comment: - status = os.system("/usr/sbin/smartctl -i /dev/%s 2>&1 >/dev/null" % drive.device) + status = os.system("/usr/sbin/smartctl -i %s/dev/%s 2>&1 >/dev/null" % + (driver, drive.device)) if not os.WIFEXITED(status) or os.WEXITSTATUS(status) != 0: comment = "# smartctl -i returns error for this drive\n# " print "%s/dev/%s %s-H -m root" % (comment, drive.device, driver) diff --git a/smartmontools.spec b/smartmontools.spec index 53ddd07..97e1a5e 100644 --- a/smartmontools.spec +++ b/smartmontools.spec @@ -1,7 +1,7 @@ Summary: Tools for monitoring SMART capable hard disks Name: smartmontools Version: 5.33 -Release: 5 +Release: 6 Epoch: 1 Group: System Environment/Base License: GPL @@ -72,6 +72,9 @@ exit 0 %changelog +* Wed Mar 22 2006 Tomas Mraz - 1:5.33-6 +- test SATA drives correctly + * Wed Mar 22 2006 Tomas Mraz - 1:5.33-5 - add default /etc/sysconfig/smartmontools file - ignore errors on startup (#186130)