aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/quark-init/quark-init_0.1.bb
blob: 026efa5fd53a9ce4ecb29020fe649b30aada7940 (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
28
29
30
31
32
33
DESCRIPTION = "List of drivers to be auto-loaded"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

SRC_URI = "file://quark-init.sh \
           file://galileo.conf \
           file://galileo_gen2.conf \
           file://quark-init.service"

INSTALLDIR = "/etc/modules-load.quark"
FILES_${PN} += "${INSTALLDIR} \
                ${sbindir}/quark-init.sh"
FILES_${PN}-dbg += "${INSTALLDIR}/.debug"

do_install() {
        install -d ${D}${INSTALLDIR}
        install -m 0755 ${WORKDIR}/galileo.conf ${D}${INSTALLDIR}/
        install -m 0755 ${WORKDIR}/galileo_gen2.conf ${D}${INSTALLDIR}/
        install -d ${D}${sysconfdir}/init.d
        install -m 0755 ${WORKDIR}/quark-init.sh ${D}${sysconfdir}/init.d

        install -d ${D}${systemd_unitdir}/system/
        install -m 0644 ${WORKDIR}/quark-init.service ${D}${systemd_unitdir}/system/
        install -d ${D}${sbindir}
        install -m 0755 ${WORKDIR}/quark-init.sh ${D}${sbindir}
}

inherit update-rc.d systemd

INITSCRIPT_NAME = "quark-init.sh"
INITSCRIPT_PARAMS = "start 75 5 ."

SYSTEMD_SERVICE_${PN} = "quark-init.service"