George Hung | 3909013 | 2020-05-12 16:56:27 +0800 | [diff] [blame] | 1 | SUMMARY = "Power Cycle by Hotswap Controller" |
| 2 | DESCRIPTION = "Power Cycle by Hotswap Controller Daemon" |
| 3 | PR = "r1" |
| 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 6 | |
| 7 | inherit systemd |
| 8 | |
| 9 | DEPENDS += "systemd" |
| 10 | RDEPENDS_${PN} += "bash" |
| 11 | |
Brandon Kim | c7f50e7 | 2020-08-12 19:15:12 -0700 | [diff] [blame] | 12 | SRC_URI = " file://hotswap-power-cycle.service \ |
| 13 | file://tray_powercycle.sh \ |
| 14 | " |
George Hung | 3909013 | 2020-05-12 16:56:27 +0800 | [diff] [blame] | 15 | |
| 16 | do_install() { |
| 17 | install -d ${D}${systemd_system_unitdir} |
| 18 | install -m 0644 ${WORKDIR}/hotswap-power-cycle.service ${D}${systemd_system_unitdir} |
Brandon Kim | c7f50e7 | 2020-08-12 19:15:12 -0700 | [diff] [blame] | 19 | |
| 20 | install -d ${D}${bindir} |
| 21 | install -m 0755 ${WORKDIR}/tray_powercycle.sh ${D}${bindir} |
George Hung | 3909013 | 2020-05-12 16:56:27 +0800 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | SYSTEMD_PACKAGES = "${PN}" |
| 25 | SYSTEMD_SERVICE_${PN} = "hotswap-power-cycle.service" |
| 26 | |