summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/dhcp/files/dhclient.service
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2017-07-20 15:33:58 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-24 09:13:30 +0100
commit695b3fa02ee75db9e56d3ca0d813fc3665b15df0 (patch)
tree306774b52bfd8d5fc32339975780c04869774338 /meta/recipes-connectivity/dhcp/files/dhclient.service
parent7b078d95fb58b0bbaf0a036933214294b7ca4e68 (diff)
downloadpoky-695b3fa02ee75db9e56d3ca0d813fc3665b15df0.tar.gz
dhcp: add dhclient.service
Add dhclient.service. This service file mainly comes from meta-systemd, with modifications to take nfs boot into consideration. While using eth0 as the nfsboot interface, we'd like dhclient service to skip it like what ifup and connman do in sysvinit. (From OE-Core rev: faa8d0f5e8db4a99367d42ba8c8de5b2e339d8d2) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/dhcp/files/dhclient.service')
-rw-r--r--meta/recipes-connectivity/dhcp/files/dhclient.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/dhcp/files/dhclient.service b/meta/recipes-connectivity/dhcp/files/dhclient.service
new file mode 100644
index 0000000000..9ddb4d1dfe
--- /dev/null
+++ b/meta/recipes-connectivity/dhcp/files/dhclient.service
@@ -0,0 +1,13 @@
1[Unit]
2Description=Dynamic Host Configuration Protocol (DHCP)
3Wants=network.target
4Before=network.target
5After=systemd-udevd.service
6
7[Service]
8EnvironmentFile=-@SYSCONFDIR@/default/dhcp-client
9ExecStart=@BASE_SBINDIR@/dhclient-systemd-wrapper
10RemainAfterExit=yes
11
12[Install]
13WantedBy=multi-user.target