summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/sysvinit/sysvinit_2.86.bb
diff options
context:
space:
mode:
Diffstat (limited to 'openembedded/packages/sysvinit/sysvinit_2.86.bb')
-rw-r--r--openembedded/packages/sysvinit/sysvinit_2.86.bb21
1 files changed, 12 insertions, 9 deletions
diff --git a/openembedded/packages/sysvinit/sysvinit_2.86.bb b/openembedded/packages/sysvinit/sysvinit_2.86.bb
index 0a8f78efcc..e2124c7fe9 100644
--- a/openembedded/packages/sysvinit/sysvinit_2.86.bb
+++ b/openembedded/packages/sysvinit/sysvinit_2.86.bb
@@ -3,11 +3,10 @@ SECTION = "base"
3LICENSE = "GPL" 3LICENSE = "GPL"
4MAINTAINER = "Chris Larson <kergoth@handhelds.org>" 4MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
5HOMEPAGE = "http://freshmeat.net/projects/sysvinit/" 5HOMEPAGE = "http://freshmeat.net/projects/sysvinit/"
6PR = "r19" 6PR = "r24"
7 7
8# USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf. 8# USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf.
9# Set PACKAGE_ARCH appropriately. 9# Set PACKAGE_ARCH appropriately.
10PACKAGE_ARCH = "all"
11PACKAGE_ARCH_${PN}-inittab = "${MACHINE_ARCH}" 10PACKAGE_ARCH_${PN}-inittab = "${MACHINE_ARCH}"
12 11
13RDEPENDS_${PN} = "${PN}-inittab" 12RDEPENDS_${PN} = "${PN}-inittab"
@@ -18,9 +17,9 @@ FILES_${PN}-inittab = "${sysconfdir}/inittab"
18CONFFILES_${PN}-inittab = "${sysconfdir}/inittab" 17CONFFILES_${PN}-inittab = "${sysconfdir}/inittab"
19 18
20USE_VT ?= "1" 19USE_VT ?= "1"
20SYSVINIT_ENABLED_GETTYS ?= "1"
21 21
22SRC_URI = "ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.85.tar.gz \ 22SRC_URI = "ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-${PV}.tar.gz \
23 file://sysvinit-2.86.patch;patch=1 \
24 file://install.patch;patch=1 \ 23 file://install.patch;patch=1 \
25 file://need \ 24 file://need \
26 file://provide \ 25 file://provide \
@@ -29,7 +28,8 @@ SRC_URI = "ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.85.tar.gz
29 file://rc \ 28 file://rc \
30 file://rcS \ 29 file://rcS \
31 file://bootlogd.init" 30 file://bootlogd.init"
32S = "${WORKDIR}/sysvinit-2.85" 31
32S = "${WORKDIR}/sysvinit-${PV}"
33B = "${S}/src" 33B = "${S}/src"
34 34
35inherit update-alternatives 35inherit update-alternatives
@@ -73,11 +73,14 @@ do_install () {
73# Format: 73# Format:
74# <id>:<runlevels>:<action>:<process> 74# <id>:<runlevels>:<action>:<process>
75# 75#
761:2345:respawn:${base_sbindir}/getty 38400 tty1 76
77# 2:23:respawn:${base_sbindir}/getty 38400 tty2
78# 3:23:respawn:${base_sbindir}/getty 38400 tty3
79# 4:23:respawn:${base_sbindir}/getty 38400 tty4
80EOF 77EOF
78
79 for n in ${SYSVINIT_ENABLED_GETTYS}
80 do
81 echo "$n:2345:respawn:${base_sbindir}/getty 38400 tty$n" >> ${D}${sysconfdir}/inittab
82 done
83 echo "" >> ${D}${sysconfdir}/inittab
81 fi 84 fi
82 install -m 0644 ${WORKDIR}/rcS-default ${D}${sysconfdir}/default/rcS 85 install -m 0644 ${WORKDIR}/rcS-default ${D}${sysconfdir}/default/rcS
83 install -m 0755 ${WORKDIR}/rc ${D}${sysconfdir}/init.d 86 install -m 0755 ${WORKDIR}/rc ${D}${sysconfdir}/init.d