Click to See Complete Forum and Search --> : Slackware networking and PCMCIA cards


hecresper
12-09-2002, 08:59 PM
I decided to post here about a minor quirk I ran into with Slackware running on my laptop and how I got around it. Basically, it has to do with the PCMCIA services being loaded after the DHCP client starts, which left my PCMCIA network card without an IP address. Then I would have to manually run the DHCP client to get an IP address. In the past, I had worked around that by assigning a static IP address to the network card. This time around I'm using the laptop at home and at work, where DHCP servers are available and I didn't want to have to change static IPs between sites. So, here's what I did to get the order of loading the services changed:

Details:

/etc/rc.d/rc.M is the startup script that has the lines to call up the network scripts

/etc/rc.d/rc.S is the startup script that has the original PCMCIA startup lines.

/etc/rc.d/rc.M is parsed/executed before /etc/rc.d/rc.S, so I watched the lines that scroll by during the boot process closely to figure out the order of events.

That led me to the /etc/rc.d/rc.inet1 and /etc/rc.d/rc.inet2 files which are called from /etc/rc.d/rc.M way before the PCMCIA script.

So... I placed the following lines from /etc/rc.d/rc.S immediately before the script lines that call the rc.inet files:

if [ -x /etc/rc.d/rc.pcmcia ] ; then
. /etc/rc.d/rc.pcmcia start
fi

Then I placed hash marks in front of the lines in the original file.

Now, the PCMCIA card services are started before the DHCP client starts, which makes the network card ready to accept the IP address.

Some of you may have gone thru this before and figured out a different way of doing this, though. This is the only solution I could come up with at the time.

Thanks,
Hector

jumpedintothefire
12-09-2002, 10:03 PM
Fire an email off to slack..... Sounds like a bit of a bug to me... Need to have the network card's modules loaded before the ipaddress is assigned.... Might (should?) make it into the next revision...
Good Job.... :cool: