aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro/recipes-kernel/gator/gator_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-linaro/recipes-kernel/gator/gator_git.bb')
-rw-r--r--meta-linaro/recipes-kernel/gator/gator_git.bb13
1 files changed, 11 insertions, 2 deletions
diff --git a/meta-linaro/recipes-kernel/gator/gator_git.bb b/meta-linaro/recipes-kernel/gator/gator_git.bb
index 6e15d441..8aed22f9 100644
--- a/meta-linaro/recipes-kernel/gator/gator_git.bb
+++ b/meta-linaro/recipes-kernel/gator/gator_git.bb
@@ -4,7 +4,10 @@ SUMMARY = "DS-5 Gator daemon"
LICENSE = "GPL-2"
LIC_FILES_CHKSUM = "file://driver/LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-SRC_URI = "git://git.linaro.org/arm/ds5/gator.git"
+inherit update-rc.d
+
+SRC_URI = "git://git.linaro.org/arm/ds5/gator.git \
+ file://gator.init "
SRCREV = "${AUTOREV}"
@@ -20,5 +23,11 @@ do_compile() {
}
do_install() {
- install -D -p -m0755 daemon/gatord ${D}/${sbindir}/gatord
+ install -D -p -m0755 daemon/gatord ${D}/${sbindir}/gatord
+ install -D -p -m0755 ${WORKDIR}/gator.init ${D}/${sysconfdir}/init.d/gator
+
}
+
+INITSCRIPT_NAME = "gator"
+INITSCRIPT_PARAMS = "defaults 66"
+