diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2020-09-24 10:41:14 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-24 22:32:49 +0100 |
commit | bbca8ff5af3de72736aac442f49f2c4e2985dd02 (patch) | |
tree | d09c7179a68abef0f39387fcef5f421ce84d0af9 /meta/recipes-connectivity | |
parent | 1186118de9033525f91da344a1226fa42d6936d9 (diff) | |
download | poky-bbca8ff5af3de72736aac442f49f2c4e2985dd02.tar.gz |
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>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r-- | meta/recipes-connectivity/dhcpcd/files/dhcpcd.service | 1 | ||||
-rw-r--r-- | meta/recipes-connectivity/dhcpcd/files/dhcpcd@.service | 1 |
2 files changed, 2 insertions, 0 deletions
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 @@ | |||
2 | Description=A minimalistic network configuration daemon with DHCPv4, rdisc and DHCPv6 support | 2 | Description=A minimalistic network configuration daemon with DHCPv4, rdisc and DHCPv6 support |
3 | Wants=network.target | 3 | Wants=network.target |
4 | Before=network.target | 4 | Before=network.target |
5 | Conflicts=connman.service | ||
5 | 6 | ||
6 | [Service] | 7 | [Service] |
7 | ExecStart=/usr/sbin/dhcpcd -q --nobackground | 8 | 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 | |||
4 | Before=network.target | 4 | Before=network.target |
5 | BindsTo=sys-subsystem-net-devices-%i.device | 5 | BindsTo=sys-subsystem-net-devices-%i.device |
6 | After=sys-subsystem-net-devices-%i.device | 6 | After=sys-subsystem-net-devices-%i.device |
7 | Conflicts=connman.service | ||
7 | 8 | ||
8 | [Service] | 9 | [Service] |
9 | Type=forking | 10 | Type=forking |