View previous topic :: View next topic |
Author |
Message |
Nadhor n00b
Joined: 03 Feb 2003 Posts: 58 Location: Germany
|
Posted: Thu May 17, 2018 7:20 am Post subject: [solved] wpa_supplicant is starting even though it shouldn't |
|
|
Hello everyone.
I am using hostapd on my gentoo machine to work as wireless router. Until recently it worked just as intended. But with one of the latest updates I have the issue, that wpa_supplicant is automatically started in daemon mode, even though it shouldn't.
In /etc/conf.d/net I allready tried adding
Code: | modules_wlp6s0="!wpa_supplicant !wireless" |
But it is started nonetheless.
wpa_supplicant is also not in the bootscripts.
I tried adding only hostapd to the bootscripts - but wpa_supplicant gets started and so hostapd doesn't work as router.
Currently, if I want my machine to function as router, I have to manually run the following commands:
Code: |
killall wpa_supplicant
/etc/init.d/hostapd start
|
Does anyone have an idea what mayhaps changed?
Thanks
Last edited by Nadhor on Thu May 17, 2018 5:04 pm; edited 1 time in total |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu May 17, 2018 9:07 am Post subject: |
|
|
Nadhor ...
you should probably provide the entire /etc/conf.d/net, 'rc-status default', and egrep '^[^#]' /etc/rc.conf, so we can see what services are started, and what provides, or needs, the 'net' target, and whether rc_depend_strict="YES" is set.
I suspect you may need something like the following (but what might have changed with openrc ITR I can't say) ...
/etc/rc.conf: | rc_dhcpcd_provide="!net"
rc_sshd_need="!net" |
best ... khay |
|
Back to top |
|
|
Nadhor n00b
Joined: 03 Feb 2003 Posts: 58 Location: Germany
|
Posted: Thu May 17, 2018 5:04 pm Post subject: |
|
|
Hello khay,
thanks for your reply.
I tried your suggestions with
Code: | rc_dhcpcd_provide="!net"
rc_sshd_need="!net" |
without success.
A little bit of further research (especially with rc-status) revealed that I was using NetworkManager - which I was unaware of. Meaning I was using NetworkManager and Netifrc at the same time, which until now didn't give any issues. But as explained on the gentoo-wiki page for https://wiki.gentoo.org/wiki/NetworkManager that can lead to unexpected behaviour.
Seems like I have to check my complete networksetup now to see how I can get out of the hole I dug myself.
Regards. |
|
Back to top |
|
|
|
|
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
|
|