summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-phosphor/leds/id-led-off_git.bb
blob: a1d20c2bcb2e99139fcf4e45e6102c328de10868 (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"