Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wpa_supplicant doesn't start with init scripts
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
Mroofka
Guru
Guru


Joined: 25 Jan 2005
Posts: 369
Location: Poland

PostPosted: Fri Dec 03, 2010 12:46 pm    Post subject: wpa_supplicant doesn't start with init scripts Reply with quote

Hi

I've changed my notebook and my wifi connection doesn't work. net.wlan0 init script seems no to run wpa_supplicant at all:



if I start manually wifi works fine
Code:
wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
dhcpd wlan0


cat /etc/init.d/net
Code:
#WPA_SUPPLICANT
modules=( "wpa_supplicant" )
wpa_supplicant_wlan0="-Dwext"
config_wlan0=( "dhcp" )


/etc/init.d/net.wlan0 restart
Code:

 * Caching service dependencies ...
 *  Cannot add provide 'net', as a service with the same name exists!                                                                                                    [ ok ]
 * Starting wlan0
 *   Bringing up wlan0
 *     dhcp
 *       Running dhcpcd ...
dhcpcd[20494]: version 5.2.8 starting
dhcpcd[20494]: wlan0: waiting for carrier


Any advices?

Pozdrawiam
Mrooka
_________________
"Make install not love"
registred linux User # 379143

"Ready for Anything; Prepared for everything; Surprised by Nothing !"
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sat Dec 04, 2010 4:49 am    Post subject: Reply with quote

if you are now on baselayout2 and openrc the nomenclature has changed:
modules="wpa_supplicant"
wpa_supplicant_wlan0="-Dwext"
config_wlan0="dhcp"

edit /etc/conf.d/rc to
Quote:
RC_VERBOSE="yes"
and get more information from
Code:
/etc/init.d/net.wlan0 restart
like
Quote:
* Starting wlan0
* Loading networking modules for wlan0
* modules: apipa arping ccwgroup macchanger macnet rename ifplugd wpa_supplicant essidnet iptunnel ifconfig system dhcpcd ip6to4
* ifplugd provides plug
* wpa_supplicant provides wireless
* ifconfig provides interface
* dhcpcd provides dhcp
* Configuring wlan0 for MAC address ... [ ok ]
* ifplugd does not work on wireless interfaces
* Starting wpa_supplicant on wlan0 ... [ ok ]
* Starting wpa_cli on wlan0 ... [ ok ]
* Waiting for association [ ok ]
* Backgrounding ...
* WARNING: apache2 is scheduled to start when net.wlan0 has started.
* WARNING: mythbackend is scheduled to start when net.wlan0 has started.
* WARNING: named is scheduled to start when net.wlan0 has started.
* WARNING: netmount is scheduled to start when net.wlan0 has started.
* WARNING: ntp-client is scheduled to start when net.wlan0 has started.
* WARNING: samba is scheduled to start when net.wlan0 has started.
* WARNING: sshd is scheduled to start when net.wlan0 has started.
Back to top
View user's profile Send private message
j-kidd
Apprentice
Apprentice


Joined: 20 Feb 2003
Posts: 213

PostPosted: Mon Dec 06, 2010 12:19 am    Post subject: Reply with quote

Do you have net-wireless/wireless-tools installed?
Back to top
View user's profile Send private message
j-kidd
Apprentice
Apprentice


Joined: 20 Feb 2003
Posts: 213

PostPosted: Mon Dec 06, 2010 5:21 pm    Post subject: Reply with quote

Ignore my previous post. I had the same problem, and fixed it by changing /sbin/wpa_supplicant to /usr/sbin/wpa_supplicant in /lib64/rc/init.d/nettree
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