Removing Ubuntu Bionic return IP instruction

This commit is contained in:
Zachary Klosko 2021-01-04 19:20:47 -05:00 committed by GitHub
parent 2135c0038e
commit 574928016b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1210,7 +1210,6 @@ else
# not on centos
ip_device="eth0"
$is_ubuntu_xenial && ip_device="enp0s8"
$is_ubuntu_bionic && ip_device="enp0s2"
IP=$(ifconfig ${ip_device} 2>/dev/null |awk -F'[ :]+' '/inet addr:/ {print $4}')
fi
verbose "...Done"