Use matching ethernet interface

This commit is contained in:
Luke Murphy 2020-02-12 19:25:37 +01:00
parent 6ef9eb36fd
commit 4f468fbe2b
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -191,7 +191,7 @@ function configure_network_interfaces {
local ethernet_interface=$(ls /sys/class/net/ | grep en)
local ethernet_filename="/etc/network/interfaces.d/${ethernet_interface}"
{ echo "auto eth0";
{ echo "auto ${ethernet_interface}";
echo "allow-hotplug ${ethernet_interface}";
echo "iface ${ethernet_interface} inet dhcp"; } > "${ethernet_filename}"