Autodetect the first network interface name that is up
sebma opened this issue · 1 comments
sebma commented
Hi,
Why not autodetect the first network interface name that is up ?
Like this :
network_interface=$(ip -o link show up | gawk -F '\\s|:' '!/\<lo\>/{print$3;exit}')
juliojsb commented
Hi,
We could detect the devices that are up and connected to the network:
ip -o link show up | grep LOWER_UP | gawk -F '\\s|:' '!/\<lo\>/{print$3;exit}'
But right now, I won't be introducing changes or updates to the tool, as it is unmaintained.
Regards,