- enable SMART on disks when smartd-conf.py runs (fix by Calvin Ostrum)
(#214502)
This commit is contained in:
parent
58a0b164f9
commit
7e063ef16c
@ -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# "
|
||||
|
@ -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 <tmraz@redhat.com> - 1:5.36-8
|
||||
- enable SMART on disks when smartd-conf.py runs (fix
|
||||
by Calvin Ostrum) (#214502)
|
||||
|
||||
* Mon Feb 12 2007 Tomas Mraz <tmraz@redhat.com> - 1:5.36-7
|
||||
- redirect service script output to null (#224566)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user