I1 n00b
Joined: 13 Sep 2004 Posts: 7
|
Posted: Sun Jun 19, 2005 11:16 am Post subject: Hotplug doesn't start dhcp when inserting WiFi card..??? |
|
|
Hi, I've recently installed baselayout 1.11.12-r4 on my laptop because of its better wifi support.
My laptop has two NICs: a built-in wired one which is configured as eth0 and a PCMCIA WiFi card configured as eth1. Both interfaces use DHCP to get their IP configuration from my router. The WiFi card has a CardBus interface and uses ndiswrapper as its driver.
Now here's my little annoyance: If I work without the wired connection and I insert the WiFi card, the card gets activated by hotplug (power and connection LEDs are activated/blinking), but DHCP doesn't kick in. I always have to restart it manually by doing
Code: | /etc/init.d/net.eth1 restart |
as root. This shuts down and restarts the card, and this time DHCP does kick in (NIC is also correctly assigned an address).
When I look at the /etc/hotplug/net.agent script, it seems to call the exact same script, so I don't understand why DHCP doesn't get activated in that particular case.
Here's my /etc/conf.d/net:
Code: | iface_eth0="dhcp"
dhcpcd_eth0="-h ${HOSTNAME} -t 10"
modules=("wpa_supplicant")
wpa_supplicant_eth1="-Dndiswrapper"
wpa_timeout_eth1=60
iface_eth1="dhcp"
dhcpcd_eth1="-h ${HOSTNAME} -t 30" |
As already said, my configuration works fine if I (re)start the WiFi NIC manually, but not when hotplug does it. Does anyone have an idea what is causing this and whether it is normal behaviour? (in other words: is it a bug or a feature? ) I don't have enough bash scripting experience to be able to answer this myself...
Thanks in advance!
Iwan. |
|