blob: 0e3e9df7afb658454a6b5502b8fb527ddb31deef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI_append = " file://ubihealthd.service"
inherit systemd
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "ubihealthd.service"
SYSTEMD_AUTO_ENABLE = "disable"
do_install_append() {
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/ubihealthd.service ${D}${systemd_unitdir}/system/
sed -i -e 's,@SBINDIR@,${sbindir},g' \
-e 's,@SYSCONFDIR@,${sysconfdir},g' \
${D}${systemd_unitdir}/system/*.service
}
|