Use matching ethernet interface
This commit is contained in:
parent
6ef9eb36fd
commit
4f468fbe2b
@ -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…
Reference in New Issue
Block a user