1 |
On Thu, 2001-11-22 at 13:24, Wouter van Kleunen wrote: |
2 |
> I added the following to my /sbin/init. |
3 |
> |
4 |
> ----- |
5 |
> if [ -e /etc/hdparm.conf ] |
6 |
> then |
7 |
> (cat /etc/hdparm.conf) | |
8 |
> while read hd params |
9 |
> do |
10 |
> ebegin "Setting parameters for harddisk: $hd" |
11 |
> /usr/sbin/hdparm $params /dev/discs/$hd/disc > /dev/null |
12 |
> eend $? |
13 |
> done |
14 |
> echo |
15 |
> fi |
16 |
> ----- |
17 |
> |
18 |
> and /etc/hdparm.conf looks like: |
19 |
> disc0 -S150 -c1 -u1 |
20 |
> disc1 -S150 -c1 -u1 |
21 |
> |
22 |
> I think it's handy. |
23 |
|
24 |
Hi |
25 |
|
26 |
I was wondering how to do this. Thanks for the tip, but ill |
27 |
add it as a script in /etc/init.d and the .conf file should |
28 |
go into /etc/conf.d. |
29 |
|
30 |
|
31 |
|
32 |
Greetings and thanks, |
33 |
|
34 |
-- |
35 |
|
36 |
Martin Schlemmer |
37 |
Gentoo Linux Developer, Desktop Team Developer |
38 |
Cape Town, South Africa |