mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-05-07 03:49:20 +00:00
beaglebone-getting-started: add systemd unit
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
DESCRIPTION = "BeagleBone Getting Started Guide"
|
DESCRIPTION = "BeagleBone Getting Started Guide"
|
||||||
|
|
||||||
PR = "r7"
|
PR = "r8"
|
||||||
|
|
||||||
inherit allarch
|
inherit allarch
|
||||||
|
|
||||||
@@ -8,12 +8,17 @@ LICENSE = "GPLv2+ && MIT && PD && others"
|
|||||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=603591dea023c3c75b48e07cb47ce639"
|
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=603591dea023c3c75b48e07cb47ce639"
|
||||||
|
|
||||||
SRCREV = "ee3af61403b087c2882ba539d3358ba25c5b8dc7"
|
SRCREV = "ee3af61403b087c2882ba539d3358ba25c5b8dc7"
|
||||||
SRC_URI = "git://github.com/jadonk/beaglebone-getting-started.git"
|
SRC_URI = "git://github.com/jadonk/beaglebone-getting-started.git \
|
||||||
|
file://bone101.service"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
install -d ${D}${datadir}/${PN}
|
install -d ${D}${datadir}/${PN}
|
||||||
cp -a ${S}/* ${D}${datadir}/${PN}
|
cp -a ${S}/* ${D}${datadir}/${PN}
|
||||||
|
|
||||||
|
install -d ${D}${base_libdir}/systemd/system
|
||||||
|
install -m 0644 ${WORKDIR}/bone101.service ${D}${base_libdir}/systemd/system
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} += "${datadir}/${PN}"
|
FILES_${PN} += "${datadir}/${PN} ${base_libdir}/systemd/system"
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Beaglebone 101 presentation
|
||||||
|
ConditionPathExists=|/var/lib/cloud9
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
WorkingDirectory=/var/lib/cloud9
|
||||||
|
ExecStart=/usr/bin/node bone101.js
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
Reference in New Issue
Block a user