diff options
author | Kang Kai <kai.kang@windriver.com> | 2012-07-09 10:26:58 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-09 11:38:01 +0100 |
commit | d6170515e1222975599c0f0d9847e632faa728d2 (patch) | |
tree | eea5b8aa85e38b413b76b4010f12c5d199c6e529 | |
parent | fc17afa42c3be9f5ab1bce475b1919b43794aaea (diff) | |
download | poky-d6170515e1222975599c0f0d9847e632faa728d2.tar.gz |
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.
(From OE-Core rev: 478f821462665a9dc6f1755059cdbf642aebbf4d)
Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/initscripts/initscripts_1.0.bb | 8 |
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 | |||
3 | SECTION = "base" | 3 | SECTION = "base" |
4 | LICENSE = "GPLv2" | 4 | LICENSE = "GPLv2" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
6 | PR = "r134" | 6 | PR = "r135" |
7 | 7 | ||
8 | INHIBIT_DEFAULT_DEPS = "1" | 8 | INHIBIT_DEFAULT_DEPS = "1" |
9 | 9 | ||
@@ -37,6 +37,12 @@ SRC_URI_append_arm = " file://alignment.sh" | |||
37 | 37 | ||
38 | KERNEL_VERSION = "" | 38 | KERNEL_VERSION = "" |
39 | 39 | ||
40 | inherit update-alternatives | ||
41 | |||
42 | ALTERNATIVE_PRIORITY = "90" | ||
43 | ALTERNATIVE_${PN} = "functions" | ||
44 | ALTERNATIVE_LINK_NAME[functions] = "${sysconfdir}/init.d/functions" | ||
45 | |||
40 | HALTARGS ?= "-d -f" | 46 | HALTARGS ?= "-d -f" |
41 | 47 | ||
42 | do_configure() { | 48 | do_configure() { |