On 1 Jun 2002, Bernie Gardner wrote:
I still have to run dhcpcd manually, but I don't turn the computer off very often, so that's not a big problem. Again, thanks for the advice.
I was just poking through the scripts because I was running into the same problem: the card services would start up, but the dhcp wouldn't go. After prodding a bit, I managed to get it working. But, as I'm not exactly a shell script guru, I'm not sure if the problems were with the scripts to begin with, or because of my weird configuration, or if I'm just misunderstanding what is supposed to be happening. The first thing I noticed in the message log: I noticed that the network script wasn't running properly, followed by the message <wlan0> not found in stab. So, I found that this check for the device in the stab was being called from the /etc/pcmcia/shared script. I may be wrong, but it looks like the return values in where it's checking the stab for the device are reversed: if it finds it, it's returning a 0, if not, a 1. However, the script that is using this function call is checking to see if the device exists, with a non-zero value representing it exists. So...I switched the return values in the check function (in grep_stab). Ok...now I was at least able to get rid of the not found in stab message. Then, I was running into "/etc/init.d/dhclient: no such file or directory." Well, I'm not sure if it's because I'm using dhclient rather than dhcpd (for some reason my dhcpcd doesn't work on my network at work, so I usually use dhcp-client rather than dhcpcd), but here on 8.0 when I run 'rcdhclient', it tells me I should run 'ifup-dhcp' and 'ifdown-dhcp' client instead, so logically there is no /etc/init.d/dhclient. So, I changed the network script to call /sbin/ifup-dhcp and /sbin/ifdown-dhcp, rather than /etc/init.d/dhclient start and stop. With those changes (return values in grep_stab() in /etc/pcmcia/shared, and the ifup-dhcp and ifdown-dhcp in /etc/pcmcia/network), it grabs an IP address when the card is identified by the pcmcia service. Like I said, I'm not sure if it was something weird on my machine which necessitated these changes, or me just not understanding things properly, but hopefully this will work for you. Neil -- Neil Palmer, B.Ed. palmern@compusmart.ab.ca ICQ#636657 http://www.fdisk.org neilp@fdisk.org Perl Developer, CSM Systems neilp@csm-systems.com Neither a borrower nor a lender be. - William Shakespeare, Hamlet