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