Subject: Re: iwi WiFi interface firmware load on boot
To: None <current-users@NetBSD.org>
From: Steven J. Dovich <dovich@tiac.net>
List: current-users
Date: 12/05/2005 08:55:48
> On Sun, Dec 04, 2005 at 10:10:51PM -0500, Steven M. Bellovin wrote:
> > In message <Pine.NEB.4.63.0512051124040.19726@angelic.cynic.net>, Curt Samp
> son
> > writes:
> >
> > >
> > >Ok, I see. So the basic value of an rc.d script would just be that it
> > >would make setup a little more obvious to newbies. Is this worthwhile,
> > >do you think? Or would it be better just to drop the idea and let users
> > >who don't know how to do this learn about ifconfig.iwi0 some other way?
> > >
> >
> > Is there any way to do such initialization in a dhclient.conf file?
> > That's how I set nwid and nwkey for my wireless cards. It also has the
> > advantage of loading firmware even for PCMCIA cards that might need
> > such treatment.
>
> Hmm, it should be possible to do that in /etc/dhclient-enter-hooks.
> See the manpage for dhclient-script(8).
>
> Bernd
>
>
I include the following in /etc/dhclient-enter-hooks to accomplish
the firmware load:
case $reason in
PREINIT)
case $interface in
iwi*)
echo "Loading $interface firmware"
iwictl $interface -k
iwictl $interface -d /usr/pkg/libdata/if_iwi
sleep 1
;;
esac
;;
esac
Hope this is helpful...
/sjd