Updated to be in sync with the current sample inittab

This commit is contained in:
Pavel Roskin 2000-09-15 17:24:13 +00:00
parent d2d3aa39ef
commit c9db2e8665
2 changed files with 19 additions and 15 deletions

View File

@ -913,14 +913,16 @@ Example /etc/inittab file:
# /bin/sh invocations on selected ttys
#
# Start an "askfirst" shell on the console (whatever that may be)
::askfirst:/bin/sh
# Start an "askfirst" shell on /dev/tty2
tty2::askfirst:/bin/sh
::askfirst:-/bin/sh
# Start an "askfirst" shell on /dev/tty2-4
tty2::askfirst:-/bin/sh
tty3::askfirst:-/bin/sh
tty4::askfirst:-/bin/sh
# /sbin/getty invocations for selected ttys
#
tty4::respawn:/sbin/getty 38400 tty4
tty5::respawn:/sbin/getty 38400 tty5
tty4::respawn:/sbin/getty 38400 tty5
tty5::respawn:/sbin/getty 38400 tty6
# Example of how to put a getty on a serial line (for a terminal)
@ -932,8 +934,8 @@ Example /etc/inittab file:
#ttyS2::respawn:/sbin/getty -x0 -s 57600 ttyS2
# Stuff to do before rebooting
::ctrlaltdel:/bin/umount -a -r > /dev/null 2>&1
::ctrlaltdel:/sbin/swapoff -a > /dev/null 2>&1
::ctrlaltdel:/bin/umount -a -r
::ctrlaltdel:/sbin/swapoff -a
-------------------------------
@ -2155,4 +2157,4 @@ Enrique Zanardi <ezanardi@ull.es>
=cut
# $Id: busybox.pod,v 1.67 2000/09/15 08:04:42 beppu Exp $
# $Id: busybox.pod,v 1.68 2000/09/15 17:24:13 proski Exp $

View File

@ -1567,14 +1567,16 @@
# /bin/sh invocations on selected ttys
#
# Start an "askfirst" shell on the console (whatever that may be)
::askfirst:/bin/sh
# Start an "askfirst" shell on /dev/tty2
tty2::askfirst:/bin/sh
::askfirst:-/bin/sh
# Start an "askfirst" shell on /dev/tty2-4
tty2::askfirst:-/bin/sh
tty2::askfirst:-/bin/sh
tty2::askfirst:-/bin/sh
# /sbin/getty invocations for selected ttys
#
tty4::respawn:/sbin/getty 38400 tty4
tty5::respawn:/sbin/getty 38400 tty5
tty4::respawn:/sbin/getty 38400 tty5
tty5::respawn:/sbin/getty 38400 tty6
# Example of how to put a getty on a serial line (for a terminal)
#
@ -1585,8 +1587,8 @@
#ttyS2::respawn:/sbin/getty -x0 -s 57600 ttyS2
# Stuff to do before rebooting
::ctrlaltdel:/bin/umount -a -r &gt; /dev/null 2&gt;&amp;1
::ctrlaltdel:/sbin/swapoff -a &gt; /dev/null 2&gt;&amp;1
::ctrlaltdel:/bin/umount -a -r
::ctrlaltdel:/sbin/swapoff
</screen>
</para>
</sect2>