From 0cb2c5424d4a62d04abb66c141d108cdeb12b976 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 8 Feb 2020 22:05:16 +0500 Subject: [PATCH] Configure network interfaces with DHCP --- build.sh | 2 -- files/etc/network/interfaces | 8 ++++++-- files/etc/network/interfaces.d/eth0 | 6 ------ files/etc/network/interfaces.d/wlan0 | 6 ------ 4 files changed, 6 insertions(+), 16 deletions(-) delete mode 100644 files/etc/network/interfaces.d/eth0 delete mode 100644 files/etc/network/interfaces.d/wlan0 diff --git a/build.sh b/build.sh index cfefa0a..9a4d6dc 100644 --- a/build.sh +++ b/build.sh @@ -202,8 +202,6 @@ apply_file 644 '/etc/hostname' apply_file 644 '/etc/hosts' apply_file 644 '/etc/network/interfaces' -apply_file 644 '/etc/network/interfaces.d/wlan0' -apply_file 644 '/etc/network/interfaces.d/eth0' ## # Configure Wi-Fi. diff --git a/files/etc/network/interfaces b/files/etc/network/interfaces index 97589ca..b250284 100644 --- a/files/etc/network/interfaces +++ b/files/etc/network/interfaces @@ -1,8 +1,12 @@ # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). -source /etc/network/interfaces.d/* - # The loopback network interface auto lo iface lo inet loopback + +auto eth0 +iface eth0 inet dhcp + +auto wlan0 +iface wlan0 inet dhcp diff --git a/files/etc/network/interfaces.d/eth0 b/files/etc/network/interfaces.d/eth0 deleted file mode 100644 index 8da63f0..0000000 --- a/files/etc/network/interfaces.d/eth0 +++ /dev/null @@ -1,6 +0,0 @@ -auto eth0 -iface eth0 inet static - netmask 255.255.255.0 - network 192.168.0.0 - broadcast 192.168.0.255 - address 192.168.0.1 diff --git a/files/etc/network/interfaces.d/wlan0 b/files/etc/network/interfaces.d/wlan0 deleted file mode 100644 index 3ec01e6..0000000 --- a/files/etc/network/interfaces.d/wlan0 +++ /dev/null @@ -1,6 +0,0 @@ -auto wlan0 -iface wlan0 inet static - netmask 255.255.255.0 - network 192.168.0.0 - broadcast 192.168.0.255 - address 192.168.0.1