aboutsummaryrefslogtreecommitdiffstats
path: root/meta-systemd/oe-core
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-10-29 17:26:45 -0700
committerKhem Raj <raj.khem@gmail.com>2013-01-08 09:31:52 -0800
commit6f86cfec550105c60097b91434ab1ae54614265f (patch)
treef0a7ac42f3f1270e7bf07a72c2fc92de74bde4fd /meta-systemd/oe-core
parent087ecf88f47bbdb1ff56f4b9b15c39581482794c (diff)
downloadmeta-openembedded-6f86cfec550105c60097b91434ab1ae54614265f.tar.gz
meta-openembedded-6f86cfec550105c60097b91434ab1ae54614265f.tar.bz2
meta-openembedded-6f86cfec550105c60097b91434ab1ae54614265f.zip
dhcp: Add systemd unit file for dhclient
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-systemd/oe-core')
-rw-r--r--meta-systemd/oe-core/recipes-connectivity/dhcp/dhcp/dhclient.service13
-rw-r--r--meta-systemd/oe-core/recipes-connectivity/dhcp/dhcp_4.2.4-P2.bbappend7
2 files changed, 18 insertions, 2 deletions
diff --git a/meta-systemd/oe-core/recipes-connectivity/dhcp/dhcp/dhclient.service b/meta-systemd/oe-core/recipes-connectivity/dhcp/dhcp/dhclient.service
new file mode 100644
index 000000000..76d64d5d9
--- /dev/null
+++ b/meta-systemd/oe-core/recipes-connectivity/dhcp/dhcp/dhclient.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Dynamic Host Configuration Protocol (DHCP)
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/dhclient.pid
+EnvironmentFile=-/etc/default/dhcp-client
+ExecStart=/sbin/dhclient -cf /etc/dhcp/dhclient.conf -q $INTERFACES -lf /var/lib/dhcp/dhclient.leases
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/meta-systemd/oe-core/recipes-connectivity/dhcp/dhcp_4.2.4-P2.bbappend b/meta-systemd/oe-core/recipes-connectivity/dhcp/dhcp_4.2.4-P2.bbappend
index a18fda802..fde242659 100644
--- a/meta-systemd/oe-core/recipes-connectivity/dhcp/dhcp_4.2.4-P2.bbappend
+++ b/meta-systemd/oe-core/recipes-connectivity/dhcp/dhcp_4.2.4-P2.bbappend
@@ -5,9 +5,12 @@ inherit systemd
PRINC := "${@int(PRINC) + 1}"
-SYSTEMD_PACKAGES = "dhcp-server-systemd dhcp-relay-systemd"
+SYSTEMD_PACKAGES = "dhcp-server-systemd dhcp-relay-systemd dhcp-client-systemd"
SYSTEMD_SERVICE_dhcp-server-systemd = "dhcpd.service"
SYSTEMD_SERVICE_dhcp-relay-systemd = "dhcrelay.service"
+SYSTEMD_SERVICE_dhcp-client-systemd = "dhclient.service"
SRC_URI += "file://dhcpd.service \
- file://dhcrelay.service"
+ file://dhclient.service \
+ file://dhcrelay.service \
+ "