1
0
mirror of https://github.com/moshix/mvs.git synced 2026-01-13 23:26:20 +00:00

more NICs

This commit is contained in:
moshix 2023-04-16 20:58:23 +02:00 committed by GitHub
parent 68a55a3273
commit 94c6e92cd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@
# v 0.6 Gets your external IP or times out telling you no external IP
# v 0.7 Get extenral IP optional with -e switch
# v 0.8 Set time out in second argument to n.n seconds (e.g. 2.1) with 2.2, only if -e is present, (e.g. -e 1.2)
# v 0.9 Added more common Linux NICs
set_color() {
# terminal handling globals
@ -37,7 +38,7 @@ echo -e "${blue}External IP: \t${white}"`timeout $delay curl ifconfig.me 2>/dev/
# main loop here
set_color
for nictype in lo en utun bridge docker tap tun ens eth
for nictype in lo wlan enp3s wlp2s en utun bridge docker tap tun ens eth
do
for counter in 0 1 2 3 4 5 6 100 101 102 103 104 160 161 162
do