From 3063126e2c8ec72e900a48f7048aaf9662606792 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 3 Sep 2012 14:45:39 +0100 Subject: oprofileui-server: move initscript from qemu-config The qemu-config initscript was only starting oprofile-server, so move it to the oprofileui-server recipe. Signed-off-by: Paul Eggleton Signed-off-by: Saul Wold --- meta/recipes-kernel/oprofile/oprofileui-server_git.bb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'meta/recipes-kernel/oprofile/oprofileui-server_git.bb') diff --git a/meta/recipes-kernel/oprofile/oprofileui-server_git.bb b/meta/recipes-kernel/oprofile/oprofileui-server_git.bb index b9f6a811e5..e75923f2a3 100644 --- a/meta/recipes-kernel/oprofile/oprofileui-server_git.bb +++ b/meta/recipes-kernel/oprofile/oprofileui-server_git.bb @@ -6,8 +6,19 @@ PR = "r0" S = "${WORKDIR}/git" -SRC_URI = "git://git.yoctoproject.org/oprofileui;protocol=git" +SRC_URI = "git://git.yoctoproject.org/oprofileui;protocol=git \ + file://init" EXTRA_OECONF += "--disable-client --enable-server" RDEPENDS_${PN} = "oprofile" + +do_install_append() { + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/oprofileui-server +} + +INITSCRIPT_NAME = "oprofileui-server" +INITSCRIPT_PARAMS = "start 999 5 2 . stop 20 0 1 6 ." + +inherit update-rc.d -- cgit 1.2.3-korg