The officially official Devuan Forum!

You are not logged in.

#1 2018-12-22 23:11:44

stuck
Member
Registered: 2018-12-22
Posts: 5  

[SOLVED] wpa_supplicant doesn't log in to wifi on boot

but it works perfectly when  I start a Konsole session as root and run
wpa_supplicant -c /etc/wpa_supplicant.conf -i wlx4cedfbb123a2 -B
dhclient wlx4cedfbb123a2

Only been running Devuan since September, everything worked perfectly until I tried to add this 802.11ac USB wireless dongle to my system.

Last edited by stuck (2018-12-23 22:20:36)

Offline

#2 2018-12-23 22:11:16

stuck
Member
Registered: 2018-12-22
Posts: 5  

Re: [SOLVED] wpa_supplicant doesn't log in to wifi on boot

Probably not the correct or most elegant solution, but I managed to get it working.

I added a pre-up command to my /etc/network/interfaces file.

auto wlx4cedfbb123a2
iface wlx4cedfbb123a2 inet dhcp
netmask 255.255.255.0
gateway 192.168.0.1
network 192.168.0.0
pre-up wpa_supplicant -c /etc/wpa_supplicant.conf -i wlx4cedfbb123a2 -B

The weird device name is because udev is renaming it from wlan1.  I don't know why or how to fix it yet.

Offline

#3 2018-12-23 22:45:58

golinux
Administrator
Registered: 2016-11-25
Posts: 3,318  

Re: [SOLVED] wpa_supplicant doesn't log in to wifi on boot

I almost never have to mess with network stuff but think your renaming issue might be related to THIS.

Online

#4 2018-12-24 19:19:48

stuck
Member
Registered: 2018-12-22
Posts: 5  

Re: [SOLVED] wpa_supplicant doesn't log in to wifi on boot

Thanks.  Nailed it.  Of course, I had to change everything back to wlan1.  And oddly, I still have to have the pre-up command for it to work.  I'm going to see if I can develop a udev rule to rename the weird driver name back to wlan1.

Offline

#5 2018-12-24 20:11:47

golinux
Administrator
Registered: 2016-11-25
Posts: 3,318  

Re: [SOLVED] wpa_supplicant doesn't log in to wifi on boot

Happy to hear you're making progress.

Online

#6 2018-12-24 20:57:20

stuck
Member
Registered: 2018-12-22
Posts: 5  

Re: [SOLVED] wpa_supplicant doesn't log in to wifi on boot

Ok, using this command

udevadm info /sys/class/net/wlan1

I was able to get enough information to create a udev rule in /etc/udev/rules.d/10-local.rules

Here's the file contents:

SUBSYSTEM=="net", ATTR{ID_NET_NAME_MAC}=="wlx4cedfbb123a2", NAME="wlan1"

The rename worked perfectly.

I removed the flags from the default grub boot line and rebooted.  The device came up as wlan1.

Still had to use the pre-up to get it to log in automatically.  Now that it's working, I'm going to see if one of the network managers will recognize the device as managed and let me control things that way. 

After that, off to investigate the new goodies in eudev!

Thanks again!

Offline

Board footer