#
# /etc/inittab
#
# Copyright (c) 1996 S.u.S.E. Gmbh Fuerth, Germany.  All rights reserved.
#
# Author: Florian La Roche <florian@suse.de>, 1996
#
# This is the main configuration file of /sbin/init, which
# is executed by the kernel on startup. It describes what
# scripts are used for the different run-levels.
#
# All scripts for runlevel changes are in /etc/rc.d/ and the main
# file for changes is /etc/rc.config.
#

# default runlevel
id:2:initdefault:

# check system on startup
# first script to be executed if not booting in emergency (-b) mode
si::sysinit:/etc/rc.d/boot

# /etc/rc.d/rc takes care of runlevel handling
#
# runlevel 0 is halt
# runlevel S is single-user
# runlevel 1 is multi-user without network
# runlevel 2 is multi-user with network
# runlevel 3 is multi-user with network and xdm
# runlevel 6 is reboot
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l6:6:wait:/etc/rc.d/rc 6
# normally not reached, but fallthrough in case of emergency
z6:6:respawn:/sbin/sulogin

# what to do in single-user mode
ls:S:wait:/etc/rc.d/rc S
~~:S:respawn:/sbin/sulogin

# what to do when CTRL-ALT-DEL is pressed
ca::ctrlaltdel:/sbin/shutdown -r -t 4 now

# special keyboard request (Alt-UpArrow)
# look into the kbd docs for this
kb::kbrequest:/bin/echo "Keyboard Request -- edit /etc/inittab to let this work."

# what to do when power fails/returns
pf::powerwait:/etc/rc.d/powerfail    start
pn::powerfailnow:/etc/rc.d/powerfail now
po::powerokwait:/etc/rc.d/powerfail  stop

# getty-programs for the normal runlevels
# <id>:<runlevels>:<action>:<process>
# The "id" field  MUST be the same as the last
# characters of the device (after "tty").
1:123:respawn:/sbin/mingetty --noclear tty1
2:123:respawn:/sbin/mingetty tty2
3:123:respawn:/sbin/mingetty tty3
4:123:respawn:/sbin/mingetty tty4
5:123:respawn:/sbin/mingetty tty5
6:123:respawn:/sbin/mingetty tty6
# use another linux system under a chroot-environment
# don't forget this entry in /etc/fstab: "none /other/proc proc defaults 0 0"
#5:123:respawn:/usr/sbin/chroot /other /sbin/mingetty tty5
#6:123:respawn:/usr/sbin/chroot /other /sbin/mingetty tty6

# sample entry for mgetty, the modem getty of linux
#md:23:respawn:/usr/sbin/mgetty -r -x 4 -s 9600 -D /dev/ttyS1
#md:23:respawn:/usr/sbin/mgetty -D /dev/ttyS1

# end of /etc/inittab
