Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26295 - "rc-update add pcmcia boot"
Summary: "rc-update add pcmcia boot"
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-09 15:19 UTC by Daniel Robbins (RETIRED)
Modified: 2003-08-12 08:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed patch to the installation guide (gentoo-x86-install.diff-pcmcia,1.29 KB, patch)
2003-08-10 07:34 UTC, Sven Vermeulen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Robbins (RETIRED) gentoo-dev 2003-08-09 15:19:06 UTC
Docs guys,

Can you look into this bug fix request from the forums? We should check with
chadh to make sure that this is the correct fix. From the msg:

First of all I would like to thank the Gentoo team for all their efforts in
making Gentoo such a pleasurable Linux distribution. It really is a good way to
learn about Linux, and the forum is a great resource.

I've been through a few installs, manily on notebooks. I've just downloaded
x86-1.4-20030807 release and followed the instructions. Please can you add a
small note at Code listing 17.3 in respect of pcmcia. I found that "rc-update
add pcmcia boot" was also required before pcmcia cards would work correctly,
especially for networking. If I missed something obvious please let me know, and
I'll appologise in advance for being such a noob
Comment 1 Chad Huneycutt (RETIRED) gentoo-dev 2003-08-09 16:59:36 UTC
This has needed to be fixed for a while.  The note in the install guide about adding "need pcmcia" to the net script is wrong.  The correct procedure is to rc-update add pcmcia (I recommend boot, but default is fine, too), and you *don't* have to rc-update add net.ethX (pcmcia starts it).
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2003-08-10 07:34:49 UTC
Created attachment 15858 [details, diff]
Proposed patch to the installation guide

Proposed patch for the installation guide. However, I'm not certain if this
really is valid:

/etc/init.d/net.eth0 reads:
"""
# For pcmcia users. note that pcmcia must be added to the same
# runlevel as the net.* script that needs it.
"""

However, you say that /etc/init.d/net.eth0 doesn't have to be added to a
runlevel ever.

Also, how does the /etc/init.d/pcmcia service know what /etc/init.d/net.eth* it
must activate? Or if you are referring to /etc/pcmcia/network, it tries to
start all net.*, right? But when is /etc/pcmcia/network activated?
Comment 3 Chad Huneycutt (RETIRED) gentoo-dev 2003-08-10 08:55:17 UTC
That comment in the net.ethX script is wrong as well.  Is azarah still in charge of init scripts?

Our modified /etc/init.d/pcmcia/network script calls the correct net.ethX script (pcmcia know which device it just detected and calls the corresponding script).
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2003-08-10 08:56:58 UTC
I don't seem to have /etc/init.d/pcmcia/network, I do have /etc/init.d/pcmcia.

*  sys-apps/pcmcia-cs
      Latest version available: 3.2.4
      Latest version installed: 3.2.4
      Size of downloaded files: 1,282 kB
      Homepage:    http://pcmcia-cs.sourceforge.net
      Description: PCMCIA tools for Linux

Comment 5 Chad Huneycutt (RETIRED) gentoo-dev 2003-08-10 08:59:25 UTC
oops.  *** /etc/pcmcia/network ***
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2003-08-11 00:56:52 UTC
When is /etc/pcmcia/network started? I don't immediately see it being sourced or whatever from /etc/init.d/pcmcia...
Comment 7 Chad Huneycutt (RETIRED) gentoo-dev 2003-08-11 06:16:29 UTC
It is started whenever a pcmcia device is detected by cardmgr (which is started by /etc/init.d/pcmcia).  That is why you don't want net.ethX rc-updated: What if the network card hasn't been inserted yet?
Comment 8 Sven Vermeulen (RETIRED) gentoo-dev 2003-08-11 09:19:29 UTC
Got it :)
Comment 9 Ken Nowack (RETIRED) gentoo-dev 2003-08-12 08:05:40 UTC
Reviewed. Post it Sven :)
Comment 10 Sven Vermeulen (RETIRED) gentoo-dev 2003-08-12 08:46:35 UTC
Committed to cvs.