summaryrefslogtreecommitdiff
path: root/meta/recipes-core/initscripts
diff options
context:
space:
mode:
authorKang Kai <kai.kang@windriver.com>2012-07-09 10:26:58 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-09 11:32:47 +0100
commit478f821462665a9dc6f1755059cdbf642aebbf4d (patch)
tree0ddd88e92210f8346402a06915db317cce6e99c8 /meta/recipes-core/initscripts
parent31b8fe8d1a9921e4efc64b6ab00c26e4bd09ed2c (diff)
downloadopenembedded-core-478f821462665a9dc6f1755059cdbf642aebbf4d.tar.gz
openembedded-core-478f821462665a9dc6f1755059cdbf642aebbf4d.tar.bz2
openembedded-core-478f821462665a9dc6f1755059cdbf642aebbf4d.zip
initscripts: use update-alternative to handle file functions
lsb need a more abundant /etc/init.d/functions file to handle lsb test. Use update-alternative to install file funtions in package initscripts, when package lsbinitscripts installed the file functions of lsbinitscripts will be used. Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/initscripts')
-rw-r--r--meta/recipes-core/initscripts/initscripts_1.0.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index 829694b462..1d80c55b28 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip
SECTION = "base"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
-PR = "r134"
+PR = "r135"
INHIBIT_DEFAULT_DEPS = "1"
@@ -37,6 +37,12 @@ SRC_URI_append_arm = " file://alignment.sh"
KERNEL_VERSION = ""
+inherit update-alternatives
+
+ALTERNATIVE_PRIORITY = "90"
+ALTERNATIVE_${PN} = "functions"
+ALTERNATIVE_LINK_NAME[functions] = "${sysconfdir}/init.d/functions"
+
HALTARGS ?= "-d -f"
do_configure() {