summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-04-23 14:32:27 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-04-23 14:32:27 +0000
commit8508cd3be7c4c6a43dc3a7963b7a83ed8d4febe9 (patch)
tree9900f25b7b08cb19b3ab090ea8e04674fd4c0cbb /packages
parenta11d7da5cf3f6a57ff01a15173a5bfa99f74c382 (diff)
parent5c10d0c72ebfbc7297b157a12ac6333fd54791e5 (diff)
merge of 1fc6af6fa0872867517c8ef7f00e8dca1179d3a1
and 7e6704734e3ec153d3d38d9715cc735bcbaff9d6
Diffstat (limited to 'packages')
-rw-r--r--packages/sysvinit/sysvinit_2.86.bb14
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/sysvinit/sysvinit_2.86.bb b/packages/sysvinit/sysvinit_2.86.bb
index d15afdfa23..e33e9e8728 100644
--- a/packages/sysvinit/sysvinit_2.86.bb
+++ b/packages/sysvinit/sysvinit_2.86.bb
@@ -3,7 +3,7 @@ SECTION = "base"
LICENSE = "GPL"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
HOMEPAGE = "http://freshmeat.net/projects/sysvinit/"
-PR = "r22"
+PR = "r23"
# USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf.
# Set PACKAGE_ARCH appropriately.
@@ -17,6 +17,7 @@ FILES_${PN}-inittab = "${sysconfdir}/inittab"
CONFFILES_${PN}-inittab = "${sysconfdir}/inittab"
USE_VT ?= "1"
+SYSVINIT_ENABLED_GETTYS ?= "1"
SRC_URI = "ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.85.tar.gz \
file://sysvinit-2.86.patch;patch=1 \
@@ -72,11 +73,14 @@ do_install () {
# Format:
# <id>:<runlevels>:<action>:<process>
#
-1:2345:respawn:${base_sbindir}/getty 38400 tty1
-# 2:23:respawn:${base_sbindir}/getty 38400 tty2
-# 3:23:respawn:${base_sbindir}/getty 38400 tty3
-# 4:23:respawn:${base_sbindir}/getty 38400 tty4
+
EOF
+
+ for n in ${SYSVINIT_ENABLED_GETTYS}
+ do
+ echo "$n:2345:respawn:${base_sbindir}/getty 38400 tty$n" >> ${D}${sysconfdir}/inittab
+ done
+ echo "" >> ${D}${sysconfdir}/inittab
fi
install -m 0644 ${WORKDIR}/rcS-default ${D}${sysconfdir}/default/rcS
install -m 0755 ${WORKDIR}/rc ${D}${sysconfdir}/init.d