From 438b8096e53c796850ebf4ea54298f42b542d341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Mr=C3=A1z?= Date: Thu, 23 Mar 2006 13:14:16 +0000 Subject: [PATCH] - test SATA drives correctly --- smartd-conf.py | 3 ++- smartmontools.spec | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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)