View previous topic :: View next topic |
Author |
Message |
JumboAg Apprentice
Joined: 03 Mar 2007 Posts: 209 Location: Dallas, TX
|
Posted: Sat Mar 03, 2007 11:25 pm Post subject: wireless doesnt work at boot, only when started manually |
|
|
I'm stumped. I cannot get my laptop to automatically bring up wireless connectivity with wpa_supplicant during boot. I know I have the wpa_supplicant configuration stuff set up correctly because it works like a champ if I bring it up manually.
The error I get (courtesy of /var/log/messages) : Mar 3 17:03:28 newtardis rc-scripts: Failed to configure eth1 in the background
Here's what DOES work if I remove the wireless NIC stuff from /etc/init.d so it doesnt try to start:
I'm actually running it in a shell script so I dont have to type it every time, but here's the script contents:
#!/bin/sh
wpa_supplicant -Dwext -ieth1 -B -c/etc/wpa_supplicant/wpa_supplicant.conf &
dhcpcd eth1
(not sure if its relevant, but I AM using ifplug to down/up my eth0 automatically when there's no cable plugged into it. It appears to be working fine.)
Here's what I'm trying to do for auto-starting wireless:
ln -s /etc/init.d/net.lo /etc/init.d/net.eth1 (to create the network interface for the wireless.)
Here's what is in /etc/conf.d/net:
config_eth0=( "dhcp" )
dhcp_eth0="nontp nonis -t 10"
modules=( "wpa_supplicant" )
wpa_supplicant_eth1="-Dwext -ieth1 -d -c/etc/wpa_supplicant/wpa_supplicant.conf"
config_eth1=( "dhcp" )
dhcp_eth1="nontp nonis"
wpa_timeout_eth1=60
Here's my run level info showing that both eth0 and 1 are in the default level: bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
consolefont | boot
hibernate-cleanup | boot
hostname | boot
keymaps | boot
local | default nonetwork
localmount | boot
modules | boot
net.eth0 | default
net.eth1 | default
net.lo | boot
netmount | default
pcmcia | default
rmnologin | boot
syslog-ng | default
urandom | boot
vixie-cron | default
vmware | default
Any assistance would be greatly appreciated. I'm not dead in the water since I can start it up manually, but it is annoying me... |
|
Back to top |
|
|
crush20 n00b
Joined: 15 Sep 2005 Posts: 14
|
Posted: Sun Mar 04, 2007 3:59 pm Post subject: |
|
|
Hi,
I have the same problem and no solution yet. Hope someone can help us! |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
crush20 n00b
Joined: 15 Sep 2005 Posts: 14
|
Posted: Mon Mar 05, 2007 10:18 am Post subject: |
|
|
Hi,
first thank you for the answer. Even without wpa_timeout the problem is still there. Any other solutions? |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
crush20 n00b
Joined: 15 Sep 2005 Posts: 14
|
Posted: Mon Mar 05, 2007 11:21 am Post subject: |
|
|
starting in foreground, the -w option and without wpa_timeout it now seems to work. Here is my /etc/conf.d/net:
Code: |
modules=( "wpa_supplicant" )
wpa_supplicant_eth1="-w -Dwext -c/etc/wpa_supplicant/wpa_supplicant.conf -ieth1"
config_eth0="dhcp"
config_eth1="dhcp"
|
Thanks for your answers! |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
crush20 n00b
Joined: 15 Sep 2005 Posts: 14
|
Posted: Mon Mar 05, 2007 11:33 am Post subject: |
|
|
y that? |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
crush20 n00b
Joined: 15 Sep 2005 Posts: 14
|
Posted: Mon Mar 05, 2007 4:19 pm Post subject: |
|
|
hmm ok I will try that |
|
Back to top |
|
|
crush20 n00b
Joined: 15 Sep 2005 Posts: 14
|
Posted: Mon Mar 05, 2007 5:12 pm Post subject: |
|
|
No, it doesn't work without the wpa_supplicant_eth1= line! I have to set the -w option! |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
crush20 n00b
Joined: 15 Sep 2005 Posts: 14
|
Posted: Mon Mar 05, 2007 6:14 pm Post subject: |
|
|
no pcmcia card, but coldplug is disabled because of an earlier emerge update world, where it has blocked another package. |
|
Back to top |
|
|
JumboAg Apprentice
Joined: 03 Mar 2007 Posts: 209 Location: Dallas, TX
|
Posted: Wed Mar 14, 2007 10:05 pm Post subject: |
|
|
For what its worth, adding the "-w" option is what fixed it for me. |
|
Back to top |
|
|
|