View previous topic :: View next topic |
Author |
Message |
houtworm Guru


Joined: 08 Mar 2003 Posts: 394 Location: Den Haag, Netherlands
|
Posted: Sat Mar 12, 2022 11:26 am Post subject: why does wpa_supplicant start? (solved) |
|
|
My /etc/conf.d/net is empty.
wpa_supplicant is not started as a service (does not show in rc-jupdate)
net.wlo1 is started in the default runlevel.
But in rc.log:
Code: | * Bringing up interface wlo1
* Caching network module dependencies
* Starting wpa_supplicant on wlo1 ...
Successfully initialized wpa_supplicant
[ ok ]
* Starting wpa_cli on wlo1 ...
[ ok ]
* Backgrounding ... ...
* WARNING: net.wlo1 has started, but is inactive
* WARNING: netmount will start when net.wlo1 has started |
It shows that wpa_supplicant is started. Why??
Perhaps it is good that is does because that is the only way the wifi connection can be established (wpa2 password in the config) but I thought that I switched it off.
The warnings about an inactive who1 are not relevant because I have an active internet connection. Perhaps the backgrounding is a call to dhcpcd and that takes a little time.
But I still don't see why wpa_supplicant is started. How is this possible? _________________ niemand is onbekwamer, dan een timmerman zonder hamer
Kees
Last edited by houtworm on Sat Mar 12, 2022 12:51 pm; edited 1 time in total |
|
Back to top |
|
 |
wless123 n00b

Joined: 27 Aug 2021 Posts: 40
|
Posted: Sat Mar 12, 2022 12:32 pm Post subject: |
|
|
Quote: | But I still don't see why wpa_supplicant is started. How is this possible? |
It's netifrc.
From https://gitweb.gentoo.org/proj/netifrc.git/tree/doc/net.example.Linux.in :
Quote: |
# If you're using anything else to configure wireless on your interface AND
# you have installed wpa_supplicant, you need to disable wpa_supplicant.
# Please see the note about hostapd in the MODULES section.
#modules="!wireless"
|
|
|
Back to top |
|
 |
houtworm Guru


Joined: 08 Mar 2003 Posts: 394 Location: Den Haag, Netherlands
|
Posted: Sat Mar 12, 2022 12:50 pm Post subject: |
|
|
Thanks wless123. I renamed /lib/netifrc and my wifi did not work, so it is really neccesary
But I have nothing in /etc/conf.d/net, no modules etc. nothing.
So netifrc is starting wpa_supplicant regardless of what is in /etc/conf.d/net
Ok I am happy with how it goes. No more errors in rc.log. _________________ niemand is onbekwamer, dan een timmerman zonder hamer
Kees |
|
Back to top |
|
 |
wless123 n00b

Joined: 27 Aug 2021 Posts: 40
|
Posted: Sat Mar 12, 2022 1:00 pm Post subject: |
|
|
Put this in /etc/conf.d/net:
Code: | modules="!wireless" |
It should prevent wpa_supplicant from getting started automatically via netifrc. |
|
Back to top |
|
 |
houtworm Guru


Joined: 08 Mar 2003 Posts: 394 Location: Den Haag, Netherlands
|
Posted: Sat Mar 12, 2022 1:06 pm Post subject: |
|
|
Ok I get it, there are some default module settings. With !wireless I have no wifi at all  _________________ niemand is onbekwamer, dan een timmerman zonder hamer
Kees |
|
Back to top |
|
 |
wless123 n00b

Joined: 27 Aug 2021 Posts: 40
|
Posted: Sat Mar 12, 2022 1:12 pm Post subject: |
|
|
houtworm wrote: | Ok I get it, there are some default module settings. With !wireless I have no wifi at all  |
True . Gl and have fun. |
|
Back to top |
|
 |
|