Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to set the wpa_supplicant auto connect net when booting
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
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Tue Dec 15, 2015 5:13 am    Post subject: How to set the wpa_supplicant auto connect net when booting Reply with quote

Hello!
When I do "dhcpcd wlp2s2" ,computer can connect to the Internet.
but I'd like to automatically connected to the Internet when booting.
How should I do?
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Tue Dec 15, 2015 5:39 am    Post subject: Reply with quote

I execute “rc-update add wlan0 default”
but shows there is no wlan0
Back to top
View user's profile Send private message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 521
Location: Germany

PostPosted: Tue Dec 15, 2015 8:07 am    Post subject: Reply with quote

Theoretically, you just need to add dhcpcd to the default run level. Ie.

Code:
rc-update add dhcpcd default


If your configuration is correct, then things should work.

Practically, there's some bug in openrc (or somewhere else). In certain cases DHCPCD does not notice wlan interface, so it does not get activated. After boot is finished, wlan interface can be activated manually.

So, make sure that dhcpcd is in default run level and that wpa_supplicant is configured appropriately. If things work, then your are done.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Tue Dec 15, 2015 9:03 am    Post subject: Reply with quote

See this wiki article https://wiki.gentoo.org/wiki/Network_management_using_DHCPCD
Back to top
View user's profile Send private message
xiwang
n00b
n00b


Joined: 28 Nov 2010
Posts: 58
Location: China

PostPosted: Tue Dec 15, 2015 1:09 pm    Post subject: Reply with quote

It is works well
Code:
rc-update add dhcpcd default


:lol:
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