diff options
-rw-r--r-- | meta-systemd/oe-core/recipes-connectivity/dhcp/dhcp/dhclient.service | 13 | ||||
-rw-r--r-- | meta-systemd/oe-core/recipes-connectivity/dhcp/dhcp_4.2.4-P2.bbappend | 7 |
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 @@ | |||
1 | [Unit] | ||
2 | Description=Dynamic Host Configuration Protocol (DHCP) | ||
3 | After=syslog.target network.target | ||
4 | |||
5 | [Service] | ||
6 | Type=forking | ||
7 | PIDFile=/var/run/dhclient.pid | ||
8 | EnvironmentFile=-/etc/default/dhcp-client | ||
9 | ExecStart=/sbin/dhclient -cf /etc/dhcp/dhclient.conf -q $INTERFACES -lf /var/lib/dhcp/dhclient.leases | ||
10 | |||
11 | [Install] | ||
12 | WantedBy=multi-user.target | ||
13 | |||
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 | |||
5 | 5 | ||
6 | PRINC := "${@int(PRINC) + 1}" | 6 | PRINC := "${@int(PRINC) + 1}" |
7 | 7 | ||
8 | SYSTEMD_PACKAGES = "dhcp-server-systemd dhcp-relay-systemd" | 8 | SYSTEMD_PACKAGES = "dhcp-server-systemd dhcp-relay-systemd dhcp-client-systemd" |
9 | SYSTEMD_SERVICE_dhcp-server-systemd = "dhcpd.service" | 9 | SYSTEMD_SERVICE_dhcp-server-systemd = "dhcpd.service" |
10 | SYSTEMD_SERVICE_dhcp-relay-systemd = "dhcrelay.service" | 10 | SYSTEMD_SERVICE_dhcp-relay-systemd = "dhcrelay.service" |
11 | SYSTEMD_SERVICE_dhcp-client-systemd = "dhclient.service" | ||
11 | 12 | ||
12 | SRC_URI += "file://dhcpd.service \ | 13 | SRC_URI += "file://dhcpd.service \ |
13 | file://dhcrelay.service" | 14 | file://dhclient.service \ |
15 | file://dhcrelay.service \ | ||
16 | " | ||