summaryrefslogtreecommitdiff
path: root/sysvinit/sysvinit_2.85.oe
diff options
context:
space:
mode:
Diffstat (limited to 'sysvinit/sysvinit_2.85.oe')
-rw-r--r--sysvinit/sysvinit_2.85.oe19
1 files changed, 18 insertions, 1 deletions
diff --git a/sysvinit/sysvinit_2.85.oe b/sysvinit/sysvinit_2.85.oe
index 40c2f6c849..128d3224dd 100644
--- a/sysvinit/sysvinit_2.85.oe
+++ b/sysvinit/sysvinit_2.85.oe
@@ -7,11 +7,12 @@ DESCRIPTION = "System-V like init.\
PACKAGES = "sysvinit"
FILES_${PN} = "/sbin ${bindir} ${sysconfdir}"
FILES_sysv-rc = "${sbindir}"
+PR = "r1"
PACKAGE_ARCH = "${MACHINE_ARCH}"
+USE_VT ?= "1"
SRC_URI = "ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-${PV}.tar.gz \
- cvs://anoncvs:anoncvs@cvs.handhelds.org/cvs;module=apps/update-rc.d \
file://need \
file://provide \
file://inittab \
@@ -48,6 +49,22 @@ do_install () {
if [ ! -z "${SERIAL_CONSOLE}" ]; then
echo "S:2345:respawn:/sbin/getty ${SERIAL_CONSOLE}" >> ${D}/etc/inittab
fi
+ if [ "${USE_VT}" == "1" ]; then
+ cat <<EOF >>${D}/etc/inittab
+# /sbin/getty invocations for the runlevels.
+#
+# The "id" field MUST be the same as the last
+# characters of the device (after "tty").
+#
+# Format:
+# <id>:<runlevels>:<action>:<process>
+#
+1:2345:respawn:/sbin/getty 38400 tty1
+# 2:23:respawn:/sbin/getty 38400 tty2
+# 3:23:respawn:/sbin/getty 38400 tty3
+# 4:23:respawn:/sbin/getty 38400 tty4
+EOF
+ fi
install -m 0644 ${WORKDIR}/rcS-default ${D}/etc/default/rcS
install -m 0755 ${WORKDIR}/rc ${D}/etc/init.d
install -m 0755 ${WORKDIR}/rcS ${D}/etc/init.d