summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox/busybox
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2014-08-04 19:03:00 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-06 10:23:40 +0100
commita40db96621fdbc36889a53279aa8840513444a76 (patch)
treebc60cb42ee0bdbad66633fd40acbb9148c9818f1 /meta/recipes-core/busybox/busybox
parent268688a489add5ac3f378cf69d39f6c8c769549a (diff)
downloadpoky-a40db96621fdbc36889a53279aa8840513444a76.tar.gz
busybox: Make busybox connman aware
This change makes busybox aware of both connman and the standard dhcp client, while there is a caveat about using busybox's ifup/ifdown, this change will make the 3 possibly dhcp clients behave better when busybox is used. Enable the CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP feature to busybox will search for various external clients and then add connman as an external client. [YOCTO #6521] (From OE-Core rev: 06bdccb5c4df44745863a2290cbb83fd190f66df) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/busybox/busybox')
-rw-r--r--meta/recipes-core/busybox/busybox/defconfig2
-rw-r--r--meta/recipes-core/busybox/busybox/recognize_connmand.patch15
2 files changed, 16 insertions, 1 deletions
diff --git a/meta/recipes-core/busybox/busybox/defconfig b/meta/recipes-core/busybox/busybox/defconfig
index 0107231e56..35f1026d65 100644
--- a/meta/recipes-core/busybox/busybox/defconfig
+++ b/meta/recipes-core/busybox/busybox/defconfig
@@ -781,7 +781,7 @@ CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN=y
781CONFIG_FEATURE_IFUPDOWN_IPV4=y 781CONFIG_FEATURE_IFUPDOWN_IPV4=y
782CONFIG_FEATURE_IFUPDOWN_IPV6=y 782CONFIG_FEATURE_IFUPDOWN_IPV6=y
783CONFIG_FEATURE_IFUPDOWN_MAPPING=y 783CONFIG_FEATURE_IFUPDOWN_MAPPING=y
784# CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set 784CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP=y
785# CONFIG_INETD is not set 785# CONFIG_INETD is not set
786# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO is not set 786# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO is not set
787# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD is not set 787# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD is not set
diff --git a/meta/recipes-core/busybox/busybox/recognize_connmand.patch b/meta/recipes-core/busybox/busybox/recognize_connmand.patch
new file mode 100644
index 0000000000..495bb05297
--- /dev/null
+++ b/meta/recipes-core/busybox/busybox/recognize_connmand.patch
@@ -0,0 +1,15 @@
1Index: busybox-1.22.1/networking/ifupdown.c
2===================================================================
3--- busybox-1.22.1.orig/networking/ifupdown.c
4+++ busybox-1.22.1/networking/ifupdown.c
5@@ -521,6 +521,10 @@ struct dhcp_client_t {
6 };
7
8 static const struct dhcp_client_t ext_dhcp_clients[] = {
9+ { "connmand",
10+ "true",
11+ "true",
12+ },
13 { "dhcpcd",
14 "dhcpcd[[ -h %hostname%]][[ -i %vendor%]][[ -I %client%]][[ -l %leasetime%]] %iface%",
15 "dhcpcd -k %iface%",