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}"