diff options
author | Phil Blundell <philb@gnu.org> | 2004-08-01 16:19:37 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2004-08-01 16:19:37 +0000 |
commit | 2fc317e611a3d9e248065c8b45f7ec2d345d093f (patch) | |
tree | 27deebd0523572764705d6ccd93a74b5776aadb1 /sysvinit/sysvinit_2.85.oe | |
parent | 18a7910b5e616a67f828020394515f051afdf47f (diff) |
don't run getty on tty1 if USE_VT=0
BKrev: 410d1819Z0hNs0mC-vu6p2i1H0a1qQ
Diffstat (limited to 'sysvinit/sysvinit_2.85.oe')
-rw-r--r-- | sysvinit/sysvinit_2.85.oe | 19 |
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 |