summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-phosphor/leds/id-led-off_git.bb
blob: 21557d96b1cdf937e6e90c8e2b88eeaf3a2500ff (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
SUMMARY = "Turn off the ID LED"
DESCRIPTION = "Script to turn off the ID LED after BMC is ready"

S = "${WORKDIR}"
SRC_URI = "file://id-led-off.sh \
           file://id-led-off.service \
          "

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${INTELBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
RDEPENDS:${PN} += "bash"

inherit systemd

FILES:${PN} += "${systemd_system_unitdir}/id-led-off.service"

do_install() {
    install -d ${D}${systemd_system_unitdir}
    install -m 0644 ${WORKDIR}/id-led-off.service ${D}${systemd_system_unitdir}
    install -d ${D}${bindir}
    install -m 0755 ${S}/id-led-off.sh ${D}/${bindir}/id-led-off.sh
}

SYSTEMD_SERVICE:${PN} += " id-led-off.service"