I need some Gentoo tips...

tom tmarinis99
Mon May 17 11:46:16 PDT 2004


Greets List, Jerry,

Jerry McBride <mcbrides9 at comcast.net> wrote:

>On Tue, 01 Apr 2003 22:59:38 -0500 tmarinis99 at netscape.net (tom) wrote:
>--snip--
>
>> The start-up scripts that reside in locations in the /etc/rc.d/r0X.d
>> SYS4 format, say like Caldera or Redhat, then the system numbers
>> are the ones you modify for networking and pcmcia are, for example
>> 
>
>Sorry, no such directory structure in Gentoo. I've got a /etc/init.d and
>/etc/runlevels. The runlevels directory has boot, default, gui, nonetwork and
>single... these directories contain links to the scripts in /etc/init.d. It
>appears that the links are executed in alphabetical order... no pcmcia resource
>is linked in /etc/runlevels... Really pita if you ask me.
>
>--- 

Hmmm... okay then, I may not know what the scripting looks like,
but it doesn't mean it can't be found somewhere in there...

I'd look for something like /etc/{rc.0 or rc.6 or halt or reboot}

if you find a runlevel like that, then it's a matter of finding
where that script is run, so I would do a quick search with
"grep and egrep", and see where that takes me.

perform a wide search for something like 

]$ grep "# Shut down PCMCIA services" /etc/runlevels.*

or 

]$ egrep " pcmcia|PCMCIA|DOWN|down|Down" /etc/runlevels.*

and review what files call the PCMCIA interface and the eth0
interface.  Go from there, and when you find the script,
switch them around.


For instance, Slackware runs something called /etc/rc.d/rc.inet1 & 
rc.inet2 for networking scripts, but has rc.0 and rc.6 scripts for
stoping and rebooting the OS.  However, Slackware uses something like
rc.pcmcia to start the card modules if needed.

Gentoo should have something like that as well.  You should look for
something that looks a little bit like ;

# Shut down PCMCIA devices:
if [ -x /etc/rc.d/rc.pcmcia ] ; then
  . /etc/rc.d/rc.pcmcia stop
fi


if you do find this in your shutdown script, you may have
to delay the shutdown process with PCMCIA, by doing a 
"sleep" command...Slackware does this as well...


# Shut down PCMCIA devices:
if [ -x /etc/rc.d/rc.pcmcia ] ; then
  . /etc/rc.d/rc.pcmcia stop
# Modified by Jerry to permit pcmcia and network shutdown
  sleep 5
fi

---

or, worse case, switch the location of the scripts that
start the network and pcmcia init's.

I'd try it out...maybe make a copy of the original scripts before
you try modifying them, incase of something goes wierd after the
changes.


Hope this helps....



---tm---
Linux Registration Number; 184093, 
http://counter.li.org


__________________________________________________________________
Try AOL and get 1045 hours FREE for 45 days!
http://free.aol.com/tryaolfree/index.adp?375380

Get AOL Instant Messenger 5.1 for FREE! Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455


More information about the Linux-users mailing list