Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jul 2005 15:37:20 -0700
From:      Ben Jencks <ben-freebsd-questions@bjencks.net>
To:        freebsd-questions@freebsd.org
Subject:   Start wpa_supplicant on boot without dhclient
Message-ID:  <86iryxgpnj.fsf@wagner.bjencks.net>

next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It looks like wpa_supplicant is the "right way" to configure wireless as
of FreeBSD 6. I'd like to start it on boot. However, I can't figure out
how to start it without dhclient also running on boot. Since I don't
always boot near an AP, this isn't appropriate.

If I use
network_interfaces="lo0 ath0"
ifconfig_ath0="WPA DHCP"
then it starts wpa_supplicant, and immediately starts dhclient as well.

If I take out DHCP
network_interfaces="lo0 ath0"
ifconfig_ath0="WPA"
then wpa_supplicant doesn't start dhclient when it gets a connection

I can get something close to the right behavior by setting
network_interfaces="lo0"
ifconfig_ath0="WPA DHCP"
This way, wpa_supplicant doesn't start on boot, but I can start it after
boot with /etc/rc.d/wpa_supplicant start ath0 and get the right
behavior. Is there a way to get wpa_supplicant to start on boot, and
only start dhclient as a result of the link-state event, not directly
during boot?
- -- 
Ben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFC5rs1pt3yYclAKVsRAsTWAJ9VhP9RtwXd3a0q1TPePr66rpEwxgCeIeZ7
JXOqziWjhb9ldWGHgok1N7o=
=+2gW
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86iryxgpnj.fsf>