LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-02-2005, 08:24 PM   #1
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
A Fix for PCMCIA NIC Restart Problem


I know I'm not the only one who's had this problem so I decided to post the fix I came up with for it.

When shutting down the computer it seems that dhcpd doesn't delete the /etc/dhcpc/dhcpcd-eth0.cache file so when you start the computer again dhcpcd doesn't assign an IP for the NIC so there is no network access.

In /etc/rc.d/rc.6 I added these two lines :

sleep 5
rm /etc/dhcpc/dhcpcd-eth0.cache

just below the line to kill dhcpcd.

The sleep 5 is to allow dhcpcd time to shut down. Probably overkill as sleep 1 or sleep 2 is probably long enough, but I went with 5 to be sure.

Obviously the following line deletes the offending file.

Now my NIC comes up with a dhcp assigned IP every boot up.

Hope maybe this helps someone.
 
Old 04-04-2005, 10:33 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I suppose that works, though the cache file is supposed to keep a record of old leases that may still be valid to reduce load on the DHCP server... i'm not sure why it wasn't reassigning, even with that.
 
  


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
restart wireless nic jasone Slackware 5 04-15-2005 12:55 PM
cable modem w/ pcmcia nic problem GlassBlower99 Mandriva 4 06-28-2004 11:03 PM
RPM lag fix by restart? GT_Onizuka Linux - Newbie 3 10-13-2003 03:22 PM
NIC problem - Xircom PCMCIA at_the_gates Linux - Hardware 4 10-06-2003 02:16 AM
Network problem with PCMCIA NIC martin1001 Linux - Newbie 1 09-27-2001 03:20 PM

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

All times are GMT -5. The time now is 03:03 AM.

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