Using Arch Linux on a Raspberry Pi and a USB Wi-Fi dongle, I can get Wi-Fi working by enabling the wpa_supplicant@wlan0
systemd service. This uses the /etc/wpa_supplicant/wpa_supplicant@wlan0.conf
file and specifies the wlan0
interface.
I understand the wpa_supplicant
systemd service does the same thing, except it autodetects the wireless interface, but starting this service instead doesn't work, even when I have a valid /etc/wpa_supplicant/wpa_supplicant.conf
file.
How would I use the wpa_supplicant
systemd service to autodetect the wireless interface and setup my Wi-Fi?
If autodetection is not what the wpa_supplicant
service does, what is the point of the wpa_supplicant
service vs the wpa_supplicant@interface
service?
wpa_supplicant@.conf
/etc/wpa_supplicant/wpa_supplicant@wlan0.conf
should be/etc/wpa_supplicant/wpa_supplicant-wlan0.conf
. In other words, the service uses the@
but the conf file uses-
.