summaryrefslogtreecommitdiff
path: root/system/Config.in
diff options
context:
space:
mode:
authorJeremy Rosen <jeremy.rosen@openwide.fr>2015-01-16 14:08:39 +0100
committerPeter Korsgaard <peter@korsgaard.com>2015-02-02 21:42:47 +0100
commitf4f62a3c16f8591b14eedc3564599c6c807820b4 (patch)
tree859874c42f27c63cf5c0530945b0f19466aaefde /system/Config.in
parentd538b8bf93f684b0ea00dc61dd4cb25394345971 (diff)
Allow a single DHCP configuration via the system configuration submenu
This patch allows the setup of simple a single interface to be automatically brought up and configured via DHCP on system startup. The interface name can be set via a configuration option. This patch does not support systemd-networkd, any complex network configuration should be done via overlay of /etc/network/interfaces or the relevant networkd configuration file [Peter: rename to BR2_SYSTEM_DHCP, tweak help text & implementation] Signed-off-by: Jérémy Rosen <jeremy.rosen@openwide.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'system/Config.in')
-rw-r--r--system/Config.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/system/Config.in b/system/Config.in
index e9f242853..95e10ab8e 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -326,6 +326,26 @@ config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
endif # BR2_ROOTFS_SKELETON_DEFAULT
+
+config BR2_SYSTEM_DHCP
+ string "Network interface to configure through DHCP"
+ default ""
+ depends on !BR2_PACKAGE_SYSTEMD_NETWORKD && (BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN)
+ help
+ Enter here the name of the network interface (E.G. eth0) to
+ automatically configure through DHCP at bootup.
+
+ If left empty, no automatic DHCP requests will take place.
+
+ For more complicated network setups use an overlay to overwrite
+ /etc/network/interfaces or add a networkd configuration file.
+
+comment "automatic network configuration via DHCP is not compatible with networkd"
+ depends on BR2_PACKAGE_SYSTEMD_NETWORKD
+
+comment "automatic network configuration via DHCP needs ifupdown or busybox"
+ depends on !(BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN)
+
config BR2_TARGET_TZ_INFO
bool "Install timezone info"
# No timezone for musl; only for uClibc or (e)glibc.