sysmocom-udhcpd-config: add systemd startup file
Fixes: SYS#735
This commit is contained in:
parent
00578db05d
commit
8800a441a1
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=UDHCPD
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/sbin/udhcpd -fS /etc/udhcpd.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -3,12 +3,18 @@ LICENSE = "MIT"
|
|||
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
|
||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
SRC_URI = "file://udhcpd.conf"
|
||||
PR = "r3"
|
||||
SRC_URI = "file://udhcpd.conf \
|
||||
file://udhcpd.service \
|
||||
"
|
||||
PR = "r4"
|
||||
|
||||
CONFFILES_${PN} = "${sysconfdir}/udhcpd.conf"
|
||||
FILES_${PN} += "${systemd_unitdir}"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${sysconfdir}
|
||||
install -m 0644 ${WORKDIR}/udhcpd.conf ${D}${sysconfdir}/
|
||||
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||
install -m 0644 /${WORKDIR}/udhcpd.service ${D}${systemd_unitdir}/system/
|
||||
ln -sf ../udhcpd.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue