blob: 64d0b35e7319beebfae04ad8650240714d10aded (
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 ${UNPACKDIR}/ubihealthd.service ${D}${systemd_unitdir}/system/
sed -i -e 's,@SBINDIR@,${sbindir},g' \
-e 's,@SYSCONFDIR@,${sysconfdir},g' \
${D}${systemd_unitdir}/system/*.service
}
|