diff options
author | John Klug <john.klug@multitech.com> | 2021-01-19 11:42:15 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2021-01-19 11:42:15 -0600 |
commit | 991bce55e69e5f3b1a3e513b4903f4f6ce47501a (patch) | |
tree | b1a2774d2493ea1461751b7a7e082f8e46209909 /recipes-support/softdog-mon_0.1.bb | |
parent | 59ab1da5ab2f76a8dcc72d9fc6de55b3d6800bd8 (diff) | |
download | meta-mlinux-991bce55e69e5f3b1a3e513b4903f4f6ce47501a.tar.gz meta-mlinux-991bce55e69e5f3b1a3e513b4903f4f6ce47501a.tar.bz2 meta-mlinux-991bce55e69e5f3b1a3e513b4903f4f6ce47501a.zip |
Add softdog-mon for customer suppot
Diffstat (limited to 'recipes-support/softdog-mon_0.1.bb')
-rw-r--r-- | recipes-support/softdog-mon_0.1.bb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-support/softdog-mon_0.1.bb b/recipes-support/softdog-mon_0.1.bb new file mode 100644 index 0000000..5ddcf7c --- /dev/null +++ b/recipes-support/softdog-mon_0.1.bb @@ -0,0 +1,33 @@ +DESCRIPTION = "MultiTech Softdog monitor" +LICENSE = "MIT" +RDEPENDS_${PN} += "kernel-module-softdog bash" + +inherit autotools + +inherit update-rc.d systemd + +INITSCRIPT_NAME = "${PN}" +# should we ever stop? +INITSCRIPT_PARAMS = "start 99 3 5 . stop 20 0 1 2 6 ." + +LIC_FILES_CHKSUM = "file://COPYING;md5=30e3dd411ec20099cbf782f420ae7ec2" +PR = "r0" +SRCREV="${PV}" +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +PACKAGES =+ "${PN}-test" +FILES_${PN}-test = "${sbindir}/hog" + +SRC_URI = "git://git.multitech.net/softdog-mon.git;protocol=git \ + file://init \ + file://default \ +" + +S = "${WORKDIR}/git" + +do_install_append() { + echo $(pwd) + install -d ${D}/${sysconfdir}/init.d + install -d ${D}/${sysconfdir}/default + install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/${PN} + install ${WORKDIR}/default ${D}/${sysconfdir}/default/${PN} +} |