Joined: 17 Jan 2013
Location: Milan, Italy
|Posted: Sat Jan 19, 2013 12:21 pm Post subject: PCMCIA wireless card activation at boot
I'm trying to make my Atheros PCMCIA wlan adapter working at boot stage.
Following the handbook, I did the following:
1) create a link to /etc/init.d/net.lo as net.wlan0:
|egeo ~ # ls -l /etc/init.d/net.wlan0
lrwxrwxrwx 1 root root 8 Jan 19 13:04 /etc/init.d/net.wlan0 -> ./net.lo
2) add the service net.wlan0 to the default runlevel:
|rc-update add net.wlan0 default |
3) this is my /etc/conf.d/net:
# Prefer wpa_supplicant over wireless-tools
modules=( "wpa_supplicant" )
# Wired LAN (ifplugd is automatically started on wired i/f)
# Wireless LAN
modules_wlan0=( "!iwconfig wpa_supplicant" )
but at startup I have the following behavior:
- a "strange" warning message:
|* WARNING: net.lo has already been started |
- all the services which depend on the net are not started:
|* netmount: waiting for net.wlan0 (50 seconds)
* netmount: waiting for net.wlan0 (41 seconds)
* netmount: timed out waiting for net.wlan0
* ERROR: cannot start netmount as net.wlan0 would not start
| * sshd: waiting for net.wlan0 (50 seconds)
* sshd: timed out waiting for net.wlan0
* ERROR: cannot start sshd as net.wlan0 would not start
and the interface is of course not working after logging in.
I also tryed to add the "yenta_socket" module to /etc/conf.d/modules:
egeo ~ # tail /etc/conf.d/modules
|# You should consult your kernel documentation and configuration
# for a list of modules and their options.
but nothing changed.
I worked around this problem doing the following:
- net.wlan0 service removed from the default runlevel
- wpa_supplicant and dhcpcd services added to the default runlevel
which is probably a dirty trick.
Where am I wrong? Thanks in advance for any suggestions.
We all smile in the same language