diff --git a/smartd-conf.py b/smartd-conf.py index 28eb497..e44d011 100755 --- a/smartd-conf.py +++ b/smartd-conf.py @@ -82,7 +82,7 @@ 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 %s%s 2>&1 >/dev/null" % + status = os.system("/usr/sbin/smartctl -s on -i %s%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# " diff --git a/smartmontools.spec b/smartmontools.spec index f4499cf..fe0199c 100644 --- a/smartmontools.spec +++ b/smartmontools.spec @@ -1,7 +1,7 @@ Summary: Tools for monitoring SMART capable hard disks Name: smartmontools Version: 5.36 -Release: 7%{?dist} +Release: 8%{?dist} Epoch: 1 Group: System Environment/Base License: GPL @@ -81,6 +81,10 @@ exit 0 %changelog +* Thu Feb 22 2007 Tomas Mraz - 1:5.36-8 +- enable SMART on disks when smartd-conf.py runs (fix + by Calvin Ostrum) (#214502) + * Mon Feb 12 2007 Tomas Mraz - 1:5.36-7 - redirect service script output to null (#224566)