From 4f468fbe2b382f2590fc994c1a35718be4929a8f Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 12 Feb 2020 19:25:37 +0100 Subject: [PATCH] Use matching ethernet interface --- bibliotecha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bibliotecha.sh b/bibliotecha.sh index 8ba31c2..da9bb5f 100644 --- a/bibliotecha.sh +++ b/bibliotecha.sh @@ -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}"