LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-09-2002, 11:44 AM   #1
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Rep: Reputation: 30
dhcpcd running b4 pcmcia stuff...


Hi,

I've noticed during boot time that the dhcp client is requesting an IP address before the PCMCIA services are loaded. In turn, it fails to give my PCMCIA nic an IP address and I have to manually run dhcpcd to get one. In the past, I got around that by assigning a static IP to my nic. This time I would like to be able to use DHCP so that I can hook up my laptop at home and at work.

I went thru files in /etc and noticed that the DHCP client and PCMCIA stuff is located in two different rc files.

Is there a way to alter the order of those boot events? Possibly to run PCMCIA stuff before the DHCP client stuff.

Thanks,
Hector
 
Old 12-09-2002, 03:30 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
if you don't have a ultra-dock for your thinkpad
and never run it in any of those with a PCI-NIC
just rename your rc.inet1 ...


Cheers,
Tink
 
Old 12-09-2002, 03:44 PM   #3
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Original Poster
Rep: Reputation: 30
rc.inet1 to rc.inet?

Thanks,
Hector
 
Old 12-09-2002, 06:01 PM   #4
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
In Slack 8.1 the rc.pcmcia start command is located in the rc.M script right BEFORE the network services are started (rc.inet1/rc.inet2). It does inlcude a note that sometime prior PCMCIA services were started in rc.S but it did not note when the change was made. But from what I can determine from my available servers, it was in rc.S on Slack 7.1 and Slack 8.0. The note indicates it was moved to the rc.M script because of pid file issues. So if you desired, remark the startup entries from the rc.S script and include them in the rc.M script, just prior to the rc.inet1/2 entries. Then configure your networking for dhcpcd operation. Use netconfig or config the rc.inet1 script manually.

Good luck.
 
Old 12-09-2002, 07:06 PM   #5
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Original Poster
Rep: Reputation: 30
Thanks guys.

This is what I had already done before your reply, Excalibur.

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.

Great minds think alike, but at different times!

Thanks,
Hector
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
running dhcpcd on boot gendreau Linux - Newbie 2 04-01-2012 03:08 PM
/sbin/dhcpcd: not running - Slackware 10 jtp51 Slackware 6 10-14-2004 12:40 PM
mandrake 10 running advx, weres the stuff? Maver Mandriva 9 06-18-2004 01:45 PM
** WIERD STUFF Sendmail running But NOT installed Hacker maybe? ** DropHit Linux - Security 15 06-14-2004 11:32 AM
Stuff running in the background...? Shredi Master Linux - Newbie 2 08-22-2001 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration