Browse Source

Use matching ethernet interface

master
Luke Murphy 5 years ago
parent
commit
4f468fbe2b
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 2
      bibliotecha.sh

2
bibliotecha.sh

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

Loading…
Cancel
Save