mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-07 15:40:01 +00:00
dhcp: Add systemd unit file for dhclient
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user