summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-network/network/ncsi-monitor.bb
blob: 4219a8e42adba1548401c3e4b56bc74d90608b83 (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 = "Check for host in reset to disable the NCSI iface"
DESCRIPTION = "If the host is in reset, the NCSI NIC will not be \
               available, so this will manually disable the NIC"

FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"

PV = "1.0"

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

SRC_URI = "\
    file://check-for-host-in-reset \
    file://${BPN}.service \
    "

RDEPENDS:${PN} += "bash"

inherit obmc-phosphor-systemd

SYSTEMD_SERVICE:${PN} += "${BPN}.service"

do_install() {
    install -d ${D}${bindir}
    install -m 0755 ${WORKDIR}/check-for-host-in-reset ${D}/${bindir}/check-for-host-in-reset

}