DEV Community

Discussion on: Rename WiFi Interface on Ubuntu 20.04

Collapse
 
yoursunny profile image
Junxiao Shi

When a systemd unit is symlinked to /dev/null, it's impossible to activate them.
If your setup works without these units activated, you don't need to edit these symlinks.

Collapse
 
edtguy profile image
edtguy

I came up with an alternate approach. From within my application, I check the mac address of wlan0 and wlan1 with "ip -brief link show dev [wlan0 | wlan1]" I expect the internal wifi to begin "b8:27:eb" for Broadcom. If I find a match on wlan0, then wlan1 becomes the monitor; otherwise wlan0 is set as the monitor. It may not be foolproof, but it works for automating the configuration of several units so far.