Re: Cannot configure Sound Card, RH9, New Box

From: Dances With Crows (danSPANceswitTRAPhcrows_at_usa.net)
Date: 08/27/04


Date: 27 Aug 2004 13:03:27 GMT

On Thu, 26 Aug 2004 23:51:03 -0400, Nico Kadel-Garcia staggered into the
Black Sun and said:
> "Dances With Crows" <danSPANceswitTRAPhcrows@usa.net> wrote in message
> news:slrncit3uj.hq9.danSPANceswitTRAPhcrows@samantha.crow202.dyndns.org...
>> > I was able to install and configure drivers for my SATA controller
>> > card. And it works when I initially loaded the module. However, I
>> > cannot get RH to detect the device and load the module on startup.
>> Redhat and derived distros have a script that's always executed on boot.
>> It's /etc/rc.d/rc.local . Add the modprobe command you need to that
>> script, and the module will be loaded.
> Don't muck with rc.local. Honest.

Huh? rc.local or boot.local is explicitly there to *be* mucked with.

> If you want to hand-load it at boot time, create an init script in
> /etc/init.d/{whatever}, and use the "chkconfig" command to enable or
> disable it at certain runlevels. That way you can turn it on or off at
> will by running the same init command after the sytem is running. This

...is overkill. chkconfig is a Redhat-specific command, and most
newbies get confused when you try to explain the SysV init setup to
them. The stated goal for this ("modprobe sata-foo && mount /dev/blah
/mnt/somewhere") certainly doesn't require a full init script.

> That way, if you have a problem with the driver, you can unload it in
> a well-defined fashion without hand-editing a critical system file,
> namely rc.local.

rc.local / boot.local isn't a critical system file. It's a shell script
that's run when the system boots. In a default distribution, it has
nothing in it but #!/bin/bash and a bunch of comments describing its
function. /etc/inittab and /etc/fstab are critical system files. If
you have a problem with a kernel module, you'll have to rmmod it.

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /    mail: TRAP + SPAN don't belong
http://www.brainbench.com     /                Hire me! 
-----------------------------/ http://crow202.dyndns.org/~mhgraham/resume


Relevant Pages

  • Re: installed modules - faq question 3.4 What am I doing wrong?
    ... I just put in use strict and use warnings to make sure. ... My os is Redhat 7.3. ... I ran the script as a regular user and also as ...
    (comp.lang.perl.misc)
  • Re: pppd does not rewrite resolv.conf - COMPLETE ANSWER
    ... >>It's not quite the sort of behaviour I expected from the combination of ... >>not documented anywhere in the man pages for wvdial or pppd. ... > unless redhat has really screwed up ppp. ... script called from the connect script in pppd - done for a variety of ...
    (comp.os.linux.setup)
  • Re: interrupt rc.sysinit
    ... >> I have RedHat 7.2 and the GRUB boot loader installed, ... I have disabled the Interactive Mode in the script that's why ... > Boot off the install CD ...
    (comp.os.linux.security)
  • Re: [opensuse] Where do I put scripts for run at Startup
    ... Anders Johansson wrote: ... While I'm not at all new to Linux, I'm quite new to Suse Linux and ... I've got a bash script that initializes my wireless adapter and on ... that he was looking for the equivalent of the redhat rc.local script, ...
    (SuSE)
  • Re: Environment variables (it was Re: Gridsphere deployment)
    ... I am coming from a redhat environment and it looks like a debian based ... at login time to restore the settings) ... I don't have a network connection to my CentOS system at the moment, ... of how long ago it was) but I don't remember writing a script. ...
    (Ubuntu)