summaryrefslogtreecommitdiff
path: root/meta-fii/meta-mori/recipes-phosphor/fans/pwm-init.bb
blob: 798bf2bac787d3ed7423ed939f0ed6c10cb4a008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SUMMARY = "Initialize PWM sensors"
DESCRIPTION = "Initialize PWM sensors"
LICENSE = "CLOSED"
DEPENDS:append = " systemd"
PR = "r1"

SRC_URI = " \
    file://pwm_init.service \
    file://bin/pwm_init.sh \
"

S = "${WORKDIR}"
SYSTEMD_AUTO_ENABLE = "enable"
SYSTEMD_SERVICE:${PN} = " pwm_init.service"

inherit systemd

do_install() {
    install -d ${D}${libexecdir}/${PN}
    install -m 0755 ${S}/bin/* ${D}${libexecdir}/${PN}/
    install -d ${D}${systemd_system_unitdir}
    install -m 0644 ${S}/*.service ${D}${systemd_system_unitdir}
}

RDEPENDS:${PN}:append = " bash"

FILES:${PN}:append = " ${bindir}/* ${systemd_system_unitdir}/*"