NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
NetBSD 4.0: wpa_supplicant not starting up at boot time (+ proposed fix)
Hello,
I have installed NetBSD 4.0 on a Dell Latitude CPx, which has a D-Link
WNA-1330 wireless adapter.
---------------------------------------
# uname -a
NetBSD babyima.local 4.0 NetBSD 4.0 (GENERIC_LAPTOP) #0:... i386
---------------------------------------
I've set up WPA per the straightforward instructions available on the
NetBSD wiki. However, I have run into an issue with wpa_supplicant;
what follows is a proposed solution (and a request for ideas for
perhaps a better solution).
Relevant snippet from /etc/rc.conf:
---------------------------------------
wscons=YES
dhclient=YES
wpa_supplicant=YES
wpa_supplicant_flags="-B -i ath0 -c /etc/wpa_supplicant.conf"
---------------------------------------
The issue:
At boot time, wpa_supplicant does not start. After a period of
troubleshooting, I determined that this is because 1) wpa_supplicant
lives in /usr/sbin; 2) the /etc/rc.d/wpa_supplicant script runs before
both the /etc/rc.d/mountcritremote script (which mounts /usr) and the
/etc/rc.d/mountall script. This arrangement means that the
wpa_supplicant binary is not available when the
/etc/rc.d/wpa_supplicant script runs.
My proposed solution:
After some more poking around in /etc/defaults/rc.conf, I decided that
a solution would be to add overrides to /etc/rc.conf. In /etc/rc.conf
now have:
---------------------------------------
critical_filesystems_local="/var /usr"
critical_filesystems_remote=""
---------------------------------------
I tested, and this fixes the problem.
Question:
Is this the appropriate solution? Is there a more proper way to do
this? I am just getting started with NetBSD and I would like to follow
best practices.
Thanks for any help.
--
Best regards -
Ryu Fan // rfanomie%gmail.com@localhost
Home |
Main Index |
Thread Index |
Old Index