]> code.ossystems Code Review - openembedded-core.git/commitdiff
dhcpcd: set service to conflict with connman
authorYi Zhao <yi.zhao@windriver.com>
Thu, 24 Sep 2020 02:41:14 +0000 (10:41 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Sep 2020 21:32:44 +0000 (22:32 +0100)
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.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/dhcpcd/files/dhcpcd.service
meta/recipes-connectivity/dhcpcd/files/dhcpcd@.service

index 86b5a43c379746424a7cf6f88c7562e90241f459..bbed6d85c49eb84b46e8a0b6847d663711c23cdc 100644 (file)
@@ -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
index 3543e6c3d20a8ed4e8a95b5ef12cebfd2c2d572e..389b076c382388fe46a36cd9729d15cf6acc807d 100644 (file)
@@ -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