SpencerKu | 83d0a87 | 2020-03-24 16:18:14 +0800 | [diff] [blame] | 1 | SUMMARY = "Hotswap Controller Setting Changing" |
| 2 | DESCRIPTION = "Hotswap Controller Setting Changing 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 | |
| 12 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
| 13 | SRC_URI_append = " file://gsj-hotswap-change-setting.sh \ |
| 14 | file://gsj-hotswap-change-setting.service \ |
| 15 | " |
| 16 | |
| 17 | do_install() { |
| 18 | install -d ${D}${bindir} |
| 19 | install -m 0755 ${WORKDIR}/gsj-hotswap-change-setting.sh ${D}${bindir}/ |
| 20 | |
| 21 | install -d ${D}${systemd_unitdir}/system/ |
| 22 | install -m 0644 ${WORKDIR}/gsj-hotswap-change-setting.service ${D}${systemd_unitdir}/system |
| 23 | } |
| 24 | |
| 25 | SYSTEMD_PACKAGES = "${PN}" |
| 26 | SYSTEMD_SERVICE_${PN} = "gsj-hotswap-change-setting.service" |