summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-intel/nic/enable-nics.bb
blob: 50c8bd63efc64e0a496b423b65db3517a44ee5e4 (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 = "One time automatically enable every NIC"
DESCRIPTION = "Re-enable NIC accidentally disabled by earlier BMC firmware."

S = "${WORKDIR}"
SRC_URI = "file://enable-nics.sh \
           file://enable-nics.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}/enable-nics.service"

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

SYSTEMD_SERVICE_${PN} += " enable-nics.service"