Skip to contentSkip to conversation

bonescript: run on startup

PATCH NAK Jason Kridner 2 participants 2 messages Nov 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bonescript: run on startup

---
 recipes-misc/payload/bonescript.bb |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
recipes-misc/payload/bonescript.bb +6 -1
index dc515f6..f2aef27 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Scripting tools for the BeagleBoard and BeagleBone"
 
-PR = "r10"
+PR = "r11"
 
 inherit allarch systemd
 
@@ -27,6 +27,11 @@ do_install() {
 
 	install -d ${D}${base_libdir}/systemd/system
 	install -m 0644 ${WORKDIR}/bone101.service ${D}${base_libdir}/systemd/system
+
+	for i in ${WORKDIR}/bone101.service ; do
+		install -m 0644 $i ${D}${base_libdir}/systemd/system
+		ln -sf ../$(basename $i) ${D}${base_libdir}/systemd/system/basic.target.wants/
+	done
 }
 
 SYSTEMD_PACKAGES = "${PN}"
Signature · 1 line
1.7.0.2.276.g60daf
#1 lore raw

Op 16 nov. 2011, om 16:42 heeft Jason Kridner het volgende geschreven:

Quoted 14 lines

---
recipes-misc/payload/bonescript.bb | 7 ++++++-

1 files changed, 6 insertions(+), 1 deletions(-)
recipes-misc/payload/bonescript.bb +0 -0
index dc515f6..f2aef27 100644
@@ -1,6 +1,6 @@

DESCRIPTION = "Scripting tools for the BeagleBoard and BeagleBone"

recipes-misc/payload/bonescript.bb +1 -1
-PR = "r10"
+PR = "r11"
Quoted 1 line

inherit allarch systemd

^^^^^^^^^^^^^^^^^^^^^^

recipes-misc/payload/bonescript.bb do_install() { · line 35

Quoted 10 lines
recipes-misc/payload/bonescript.bb +5 -0
@@ -27,6 +27,11 @@ do_install() {
 
 	install -d ${D}${base_libdir}/systemd/system
 	install -m 0644 ${WORKDIR}/bone101.service ${D}${base_libdir}/systemd/system
+
+	for i in ${WORKDIR}/bone101.service ; do
+		install -m 0644 $i ${D}${base_libdir}/systemd/system
+		ln -sf ../$(basename $i) ${D}${base_libdir}/systemd/system/basic.target.wants/
+	done
 }

NAK, see above