Add eno to second grep too

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:54 -04:00
parent ccfa042ef0
commit 8f3d3b90ac
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ for interface in $( ip address | grep '^[0-9]' | grep 'eno\|enp\|ens\|wlp' | awk
done done
sleep 2 sleep 2
interfaces="$( interfaces="$(
ip address | grep '^[0-9]' | grep 'enp\|ens\|wlp' | awk '{ print $2"\t"$3 }' | tr -d ':' ip address | grep '^[0-9]' | grep 'eno\|enp\|ens\|wlp' | awk '{ print $2"\t"$3 }' | tr -d ':'
)" )"
echo "3a) Please enter the primary network interface for external connectivity. If" echo "3a) Please enter the primary network interface for external connectivity. If"
echo " no entries are shown here, ensure a cable is connected, then restart the" echo " no entries are shown here, ensure a cable is connected, then restart the"