OK. I have moved my changes that I tried out of /etc/devd.conf and created a new iwi.conf file in /usr/local/etc/devd as Daniel suggested. It seems to work well and dhclient still attaches to the interface even when roaming. I was never able to get an /etc/start_if.iwi0 script to work correctly as Sam suggested because the dhclient dies on link down and there is nothing to detect the link up and reattach it. When I was roaming the dhclient would die as I re-associated. Using devd it works great. Here is the iwi.conf file: # devd configuration file for the iwi driver. # This file downloads the firmware on attach and starts up dhclient if configured. # attach 100 { device-name "iwi0"; action "/usr/local/sbin/iwicontrol -i iwi0 -d /usr/local/libdata/if_iwi -m bss"; }; # Try to start dhclient when the link comes up. # Only devices that are configured to support DHCP will actually # run it. No link down rule exists because dhclient automatically exits # when the link goes down. # notify 100 { match "system" "IFNET"; match "subsystem" "iwi0"; match "type" "LINK_UP"; action "/etc/rc.d/dhclient start iwi0"; }; I'll start working on a diff for the port and send it into the iwi-firmware port maintainer. ---- Kirk Kirk Davis Senior Network Analyst, ITS Edmonton Public Schools 1-780-429-8308 Kirk Davis wrote: > I agree and that is what I started to do but I needed to add the iwi device > to the ethernet-nic-regex variable in order for the dhclient to get the link > up/down notification. I'm not sure what the recommended way is for this. > I guess I could just create a new notify for that device in the included > file. > > ---- Kirk > > -----Original Message----- > From: Daniel O'Connor [mailto:doconnor_at_gsoft.com.au] > Sent: July 27, 2005 8:10 AM > To: freebsd-current_at_freebsd.org > Cc: Kirk Davis; 'Brandon S. Allbery KF8NH' > Subject: Re: 6-BETA1 iwi + wpa_supplicant fails, and sometimes silently re > boots > > On Wednesday 27 July 2005 01:54, Kirk Davis wrote: > > firmware early enough and that caused problems with dhclient. In stead I > > told devd to load the firmware on device detection. The following is a > > diff on the changed to devd.conf > > I strongly suggest you put this in /usr/local/etc/devd - no worries about > diffs then, and it makes any install doco much simpler ("copy this file to > X")Received on Wed Jul 27 2005 - 14:12:40 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:39 UTC