Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485394 - >=net-misc/dhcpcd-6 - wpa_supplicant hook incorrectly configured
Summary: >=net-misc/dhcpcd-6 - wpa_supplicant hook incorrectly configured
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-19 10:37 UTC by Xavier Miller (RETIRED)
Modified: 2013-09-22 18:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller (RETIRED) gentoo-dev 2013-09-19 10:37:54 UTC
The dhcpcd hook for wpa_supplicant searches the wpa_supplicant.conf file in /etc/ in place of /etc/wpa_supplicant.

# head /lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant 
# Start, reconfigure and stop wpa_supplicant per wireless interface.
# This is needed because wpa_supplicant lacks hotplugging of any kind
# and the user should not be expected to have to wire it into their system
# if the base system doesn't do this itself.

: ${wpa_supplicant_conf:=/etc/wpa_supplicant.conf}

wpa_supplicant_start()


Reproducible: Always

Steps to Reproduce:
1. no wpa_supplicant cold-/hotplugging
2. create a symlink /etc/wpa_supplicant/wpa_supplicant.conf to /etc or edit hook
3. wpa_supplicant is called by dhcpcd
Comment 1 William Hubbs gentoo-dev 2013-09-20 16:43:10 UTC
Roy,

several Linux distros support storing wpa_supplicant.conf in
/etc/wpa_supplicant/wpa_supplicant.conf instead of
/etc/wpa_supplicant.conf. However, the dhcpcd wpa_supplicant hook only
looks for the config file in /etc.

You might want to make the hook check for this file in both places.

Thanks,

William
Comment 3 William Hubbs gentoo-dev 2013-09-22 18:06:20 UTC
This is available in the live version and will be included in the first
release after 6.1.