As the default network manager, connman has its own internal DHCP
implement. If run dhcpcd and connman simultaneously, they may conflict
with each other.

Signed-off-by: Yi Zhao <yi.z...@windriver.com>
---
 meta/recipes-connectivity/dhcpcd/files/dhcpcd.service  | 1 +
 meta/recipes-connectivity/dhcpcd/files/dhcpcd@.service | 1 +
 2 files changed, 2 insertions(+)

diff --git a/meta/recipes-connectivity/dhcpcd/files/dhcpcd.service 
b/meta/recipes-connectivity/dhcpcd/files/dhcpcd.service
index 86b5a43c37..bbed6d85c4 100644
--- a/meta/recipes-connectivity/dhcpcd/files/dhcpcd.service
+++ b/meta/recipes-connectivity/dhcpcd/files/dhcpcd.service
@@ -2,6 +2,7 @@
 Description=A minimalistic network configuration daemon with DHCPv4, rdisc and 
DHCPv6 support
 Wants=network.target
 Before=network.target
+Conflicts=connman.service
 
 [Service]
 ExecStart=/usr/sbin/dhcpcd -q --nobackground
diff --git a/meta/recipes-connectivity/dhcpcd/files/dhcpcd@.service 
b/meta/recipes-connectivity/dhcpcd/files/dhcpcd@.service
index 3543e6c3d2..389b076c38 100644
--- a/meta/recipes-connectivity/dhcpcd/files/dhcpcd@.service
+++ b/meta/recipes-connectivity/dhcpcd/files/dhcpcd@.service
@@ -4,6 +4,7 @@ Wants=network.target
 Before=network.target
 BindsTo=sys-subsystem-net-devices-%i.device
 After=sys-subsystem-net-devices-%i.device
+Conflicts=connman.service
 
 [Service]
 Type=forking
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#142749): 
https://lists.openembedded.org/g/openembedded-core/message/142749
Mute This Topic: https://lists.openembedded.org/mt/77050079/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to