Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Startup scripts with wpa_supplicant + dhcpcd do not work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
valentas
n00b
n00b


Joined: 20 Mar 2006
Posts: 46

PostPosted: Fri Oct 27, 2006 6:15 am    Post subject: Startup scripts with wpa_supplicant + dhcpcd do not work Reply with quote

/etc/conf.d/net:
Code:
modules=( "wpa_supplicant" "dhcpcd" )
wpa_supplicant_eth1="-Dwext"
wpa_timeout_eth1=30
config_eth1=( "dhcp" )
dhcpcd_eth1="-HD -t 0"


/etc/conf.d/wireless:
Code:

modules=( "wpa_supplicant" )
modules=( "!iwconfig" )


/etc/init.d/net.eth1 outputs the following:

Code:
 * Caching service dependencies ...                                       [ ok ]
 * Starting eth1
 *   Starting wpa_supplicant on eth1 ...                                  [ ok ]
 *   Starting wpa_cli on eth1 ...                                         [ ok ]
 *     Backgrounding ...


wpa_supplicant connects and authenticates, but dhcpcd never obtains an IP, hostname, etc..

On the contrary, if I start it manually:

Code:
wpa_supplicant -ieth1 -B -c/etc/wpa_supplicant/wpa_supplicant.conf -Dwext &
dhcpcd -t 0 -HD eth1 &


everything works fine.

What's wrong with configs? How to disable this backgrounding to see what's actually happening?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Oct 27, 2006 10:17 am    Post subject: Reply with quote

associate_timeout_eth1="60"
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
valentas
n00b
n00b


Joined: 20 Mar 2006
Posts: 46

PostPosted: Thu Nov 02, 2006 4:06 pm    Post subject: Reply with quote

No luck.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Nov 02, 2006 5:25 pm    Post subject: Reply with quote

What does `wpa_cli status` say?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
valentas
n00b
n00b


Joined: 20 Mar 2006
Posts: 46

PostPosted: Thu Nov 02, 2006 11:11 pm    Post subject: Reply with quote

Code:
wpa_cli status
Selected interface 'eth1'
bssid=00:15:e9:e0:ad:8f
ssid=Namas
pairwise_cipher=WEP-40
group_cipher=WEP-40
key_mgmt=NONE
wpa_state=COMPLETED


The problem is dhcp as I said.
Back to top
View user's profile Send private message
<chillum>
n00b
n00b


Joined: 26 Mar 2005
Posts: 31
Location: Hamburg, Germany

PostPosted: Fri Nov 03, 2006 2:53 am    Post subject: Reply with quote

you can disable backgrounding with
Code:
RC_PARALLEL_STARTUP="no"
in /etc/conf.d/rc
Back to top
View user's profile Send private message
valentas
n00b
n00b


Joined: 20 Mar 2006
Posts: 46

PostPosted: Fri Nov 03, 2006 9:35 pm    Post subject: Reply with quote

Quote:
you can disable backgrounding with
Code:
RC_PARALLEL_STARTUP="no"
in /etc/conf.d/rc


this one doesn't disable wpa_supplicant's backgrounding...

Code:
* Starting eth1
 *   Starting wpa_supplicant on eth1 ...                                  [ ok ]
 *   Starting wpa_cli on eth1 ...                                         [ ok ]
// waits associate_timeout_eth1 seconds
 *     Failed to configure eth1 in the background                         [ !! ]


I guess that dhcpcd is not called at all. Why?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum