Start wpa_supplicant on boot without dhclient

Ben Jencks ben-freebsd-questions at bjencks.net
Tue Jul 26 22:37:44 GMT 2005


-----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-----


More information about the freebsd-questions mailing list