not detecting interfaces in ubuntu 20.04
Closed this issue · 1 comments
0d0a0c commented
Ubuntu 20.04 uses predictable network interface names. As a result install.sh does not detect wifi interfaces.
0d0a0c commented
This kludge solves my problem in Ubuntu, replacing the original line check_wlan_interfaces()
in install.sh
for iface in $(ifconfig | grep -oE wlan[0-9]); do ifaces+=("$iface"); done
with
for iface in $(ip -o link show | awk -F': ' '{print $2}' | grep -v 'lo'); do ifaces+=("$iface"); done
It does what I need, but gives ALL network interfaces so the user must ensure wifi interfaces are there.