Bug 37755 - this new hdparm rc script resolves several open bugs
Bug#: 37755 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: tavin.cole@gmail.com
Component: Core system
URL: 
Summary: this new hdparm rc script resolves several open bugs
Keywords:  
Status Whiteboard: 
Opened: 2004-01-09 19:17 0000
Description:   Opened: 2004-01-09 19:17 0000
Here's my entry in the "new hdparm rc script" category.  This one addresses the
issues raised in several open bugs:

GOALS
-----
1. handle both devfs and non-devfs systems (bug #35273)
2. handle systems without discs or cdroms (bug #20816)
3. handle ide-scsi devices (bug #35458)
4. don't mistakenly run hdparm on non-ide devices (bug #16848)

It also tries to be clean and efficient.

This script is compatible with the extant /etc/conf.d/hdparm, but introduces
some new variables.  The first are hdX_args, which are required for non-devfs
systems and which, if defined, override discX_args and cdromX_args on devfs
systems.  The second are genericX_args, which apply to the generic (e.g.,
ide-scsi) devices.

The script is commented with a description of its method of operation.


Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Tavin Cole 2004-01-09 19:18:19 0000 -------
Created an attachment (id=23523) [details]
new hdparm rc script

------- Comment #2 From Tavin Cole 2004-01-09 19:49:49 0000 -------
Created an attachment (id=23524) [details]
fixed version

made it behave as described w/r/to hdX_args overriding discX_args and
cdromX_args

------- Comment #3 From Tavin Cole 2004-06-22 12:04:15 0000 -------
Created an attachment (id=33886) [details]
new version

changed depend() so it runs before bootmisc instead of before * .. this seems
to be as early as possible with the gentoo init system and avoids annoying
"circular dependency with checkroot" warnings

cleaned up a little

------- Comment #4 From Heinrich Wendel (RETIRED) 2004-08-01 07:44:05 0000 -------
finally added in hdparm-5.5-r1 with small cleanups:

- added udev support
- remove empty lines at the end
- changed all [[ to [