Enable networking on all reasonable interfaces

Because Buildroot only comes with support for one interface by default
(and because it only enables DHCPv4, not anything related to IPv6),
let's use this approach to enable all wired interfaces.

Tested on a Geode, it works.

Change-Id: I518db7d04a879b337039d51bfd9d8e0edb171f43
diff --git a/board/czechlight/common/dhcp-network.sh b/board/czechlight/common/dhcp-network.sh
new file mode 100755
index 0000000..88e6cc4
--- /dev/null
+++ b/board/czechlight/common/dhcp-network.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+set -eux -o pipefail
+shopt -s failglob
+
+for IFACE in eth0 enp0s13 enp0s14; do
+  cat <<EOF > ${TARGET_DIR}/usr/lib/systemd/network/${IFACE}.network
+[Match]
+Name=${IFACE}
+[Network]
+DHCP=yes
+EOF
+done
diff --git a/configs/czechlight_beaglebone_defconfig b/configs/czechlight_beaglebone_defconfig
index f2673dc..3e88a7a 100644
--- a/configs/czechlight_beaglebone_defconfig
+++ b/configs/czechlight_beaglebone_defconfig
@@ -10,8 +10,8 @@
 BR2_TARGET_GENERIC_PASSWD_SHA256=y
 BR2_INIT_SYSTEMD=y
 BR2_TARGET_GENERIC_GETTY_PORT="ttyO0"
-BR2_SYSTEM_DHCP="eth0"
 BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight/common/overlay/ $(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight/beaglebone/overlay/"
+BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight/common/dhcp-network.sh"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight/beaglebone/post-image.sh"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
diff --git a/configs/czechlight_epia_geode_defconfig b/configs/czechlight_epia_geode_defconfig
index e2c8a04..ae7e48b 100644
--- a/configs/czechlight_epia_geode_defconfig
+++ b/configs/czechlight_epia_geode_defconfig
@@ -16,9 +16,9 @@
 BR2_TARGET_GENERIC_ISSUE="Welcome to CzechLight"
 BR2_TARGET_GENERIC_PASSWD_SHA256=y
 BR2_INIT_SYSTEMD=y
-BR2_SYSTEM_DHCP="eth0"
 BR2_ENABLE_LOCALE_WHITELIST="C en_US en_US.utf8"
 BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight/common/overlay/"
+BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight/common/dhcp-network.sh"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight/epia_geode/post-image.sh"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y