Re: Turn on DMA on boot
On 03 Jul 2003, Shri Shrikumar wrote:
> On Wed, 2003-07-02 at 23:37, Shyamal Prasad wrote:
> > "Dan" == Dan Collis Puro <firstname.lastname@example.org> writes:
> > Dan> Anyway: What would be the most "Debian" way to turn on DMA
> > Dan> (essentially run "hdparm -d1 /dev/hda") on boot? I could
> > Dan> (probably) add something in /etc/rc2.d, but that just seems
> > Dan> dirty.
> > The commonly accepted "Debian way" seems to be
> > # apt-get install hwtools
> > # vi /etc/init.d/hwtools
> If you are doing custom kernels, I think that there is an option in
> there as well.
I have a file: /etc/init.d/rc.local in which I put the above command
plus other stuff I want started at boot. As far as I know this is a
"Debian approved" method. There is a skeleton file in /etc/init.d/
which shows you how to write suitable files.
email@example.com || http://www.acampbell.org.uk
using Linux GNU/Debian || for book reviews, electronic
Windows-free zone || books and skeptical articles