dhcpcd: set service to conflict with connman

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

(From OE-Core rev: c02fce3b42513d8c741d74091b20a6a52cea32d2)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Yi Zhao 2020-09-24 10:41:14 +08:00 committed by Richard Purdie
parent 1186118de9
commit bbca8ff5af
2 changed files with 2 additions and 0 deletions

View 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

View 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