summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/update-rc.d
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 14:14:24 (GMT)
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 14:29:45 (GMT)
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-core/update-rc.d
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/update-rc.d')
-rw-r--r--meta/recipes-core/update-rc.d/update-rc.d/add-verbose.patch47
-rw-r--r--meta/recipes-core/update-rc.d/update-rc.d_0.7.bb25
2 files changed, 72 insertions, 0 deletions
diff --git a/meta/recipes-core/update-rc.d/update-rc.d/add-verbose.patch b/meta/recipes-core/update-rc.d/update-rc.d/add-verbose.patch
new file mode 100644
index 0000000..0f06830
--- /dev/null
+++ b/meta/recipes-core/update-rc.d/update-rc.d/add-verbose.patch
@@ -0,0 +1,47 @@
1--- update-rc.d/update-rc.d.org 2005-01-03 00:30:47.000000000 +0200
2+++ update-rc.d/update-rc.d 2007-12-01 19:41:08.000000000 +0200
3@@ -19,6 +19,7 @@
4 notreally=0
5 force=0
6 dostart=0
7+verbose=0
8
9 usage()
10 {
11@@ -28,6 +29,7 @@
12 update-rc.d [-n] [-r <root>] [-s] <basename> start|stop NN runlvl [runlvl] [...] .
13 -n: not really
14 -f: force
15+ -v: verbose
16 -r: alternate root path (default is /)
17 -s: invoke start methods if appropriate to current runlevel
18 EOF
19@@ -69,7 +71,7 @@
20 lev=`echo $2 | cut -d/ -f1`
21 nn=`echo $2 | cut -d/ -f2`
22 fn="${etcd}${lev}.d/${startstop}${nn}${bn}"
23- echo " $fn -> ../init.d/$bn"
24+ [ $verbose -eq 1 ] && echo " $fn -> ../init.d/$bn"
25 if [ $notreally -eq 0 ]; then
26 mkdir -p `dirname $fn`
27 ln -s ../init.d/$bn $fn
28@@ -89,7 +91,7 @@
29 exit 0
30 fi
31
32- echo " Adding system startup for $initd/$bn ..."
33+ echo " Adding system startup for $initd/$bn."
34
35 for i in $startlinks; do
36 dolink S $i
37@@ -105,6 +107,10 @@
38 shift
39 continue
40 ;;
41+ -v) verbose=1
42+ shift
43+ continue
44+ ;;
45 -f) force=1
46 shift
47 continue
diff --git a/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb b/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb
new file mode 100644
index 0000000..03ac5c1
--- /dev/null
+++ b/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb
@@ -0,0 +1,25 @@
1DESCRIPTION = "manage symlinks in /etc/rcN.d."
2SECTION = "base"
3PRIORITY = "standard"
4PACKAGE_ARCH = "all"
5
6LICENSE = "GPLv2+"
7LIC_FILES_CHKSUM = "file://update-rc.d;beginline=5;endline=15;md5=148a48321b10eb37c1fa3ee02b940a75"
8
9PR = "r3"
10
11SRC_URI = "${HANDHELDS_CVS};module=apps/update-rc.d;tag=r0_7 \
12 file://add-verbose.patch;apply=yes"
13
14S = "${WORKDIR}/update-rc.d"
15
16
17do_compile() {
18}
19
20do_install() {
21 install -d ${D}${sbindir}
22 install -m 0755 ${S}/update-rc.d ${D}${sbindir}/update-rc.d
23}
24
25BBCLASSEXTEND = "native"