Gentoo Archives: gentoo-dev

From: Wouter van Kleunen <w.a.p.vankleunen@×××××××××××××××.nl>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] hdparm in init
Date: Thu, 22 Nov 2001 12:07:42
Message-Id: 200111221806.fAMI6Dn18860@netlx009.civ.utwente.nl
In Reply to: Re: [gentoo-dev] hdparm in init by Martin Schlemmer
1 as init.d script it would look like:
2
3 ---
4 #!/sbin/runscript
5
6 depend() {
7 need bootmisc
8 }
9
10 start() {
11 [ -e /usr/sbin/hdparm ] || return
12 if [ -e /etc/hdparm.conf ]
13 then
14 (cat /etc/hdparm.conf) |
15 while read hd params
16 do
17 ebegin "Setting parameters for harddisk: $hd"
18 /usr/sbin/hdparm $params /dev/discs/$hd/disc > /dev/null
19 eend $?
20 done
21 echo
22 fi
23
24 return
25 }
26
27 ----
28
29 But i have no idea how to make gentoo have it run as one of the first
30 scripts, to reduce boottime (a little).
31
32 Maybe name it 00hdparm or something.

Replies

Subject Author
Re: [gentoo-dev] hdparm in init Blue Lizard <webmaster@×××××××××.com>