Re: modules.autoload

Guy <[email protected]> Tue, 15 Oct 2002 09:43:09 -0400
Newsgroups gmane.linux.gentoo.newbies
Message-ID <[email protected]>
On Tuesday 15 October 2002 08:12 am, Kerin Millar wrote:
>
> This should work: make a service script containing the
> necessary modprobe command for your device, and have the
> "localmount" service depend on your script. Run any of your
> existing service scripts without any arguments for more
> information e.g.:
>
>     /etc/init.d/localmount
>
> ... will give you some detailed information about creating
> these scripts, it's not too difficult, just observe the syntax
> for implying a dependency and the fact that your script should
> respond to "start" and "stop" events. Have a look in
> /etc/init.d directory for examples. Note that Gentoo only has
> three runlevels which keeps things quite simple. After you've
> prepared your script and given it a name (such as "jazstart")
> then just add it to your boot runlevel:
>
>     rc-update add jazstart boot
>
> If you're not sure how to prepare such a script, then reply to
> this.

I'm having a bit of a problem doing this myself. Every script I write
or copy and modify spits out a message of something to the effect
of " ...runscript.sh ... invalid ... ". I realize the message isn't helpful
or complete [laughs] as it's from memory. I can retry one of my
scripts and post the full message, but I think there is something
else I'm missing.

Guy

-- 
People whom think M$ software is mediocre don't know the half of it.