#
# inittab	This file describes how the INIT process should set up
#		the system in a certain run-level.
#   0 = halt
#   1 = single user mode
#   2 = Default Runlevel
#   3 = 
#   4 =  
#   5 = X11 with KDM/GDM/XDM (session managers)
#   6 = reboot

# Default runlevel. (Do not set to 0 or 6)
id:2:initdefault:

# System initialization (runs when system boots).

# Script to run when going single user (runlevel 1).

# Script to run when going to other runlevel:
su:S:sysinit:/etc/rc.d/rc.S  # System initialization (runs when system boots).
l0:0:wait:/etc/rc.d/rc.0     	# Lock the system
l1:1:wait:/etc/rc.d/rc.K    	# Single user
l2:2:wait:/etc/rc.d/rc.sysvinit # Default
l3:3:wait:/etc/rc.d/rc.sysvinit # 
l4:4:wait:/etc/rc.d/rc.sysvinit # 
l5:5:wait:/etc/rc.d/rc.X     	# X window and xdm
l6:6:wait:/etc/rc.d/rc.6  	# Reboot the system


# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t5 -rf now


# What to do when power fails (shutdown to single user).
pf::powerfail:/sbin/shutdown -f +5 "THE POWER IS FAILING"

# If power is back before shutdown, cancel the running shutdown.
pg:0123456:powerokwait:/sbin/shutdown -c "THE POWER IS BACK"

# If power comes back in single user mode, return to multi user mode.
ps:S:powerokwait:/sbin/init 3

# The getties in multi user mode on consoles an serial lines.
#
# NOTE NOTE NOTE adjust this to your getty or you will not be
#                able to login !!
#
# Note: for 'agetty' you use linespeed, line.
# for 'getty_ps' you use line, linespeed and also use 'gettydefs'
c1:12345:respawn:/sbin/mingetty tty1
c2:12345:respawn:/sbin/mingetty tty2
c3:1234:respawn:/sbin/mingetty tty3
c4:1234:respawn:/sbin/mingetty tty4
c5:1234:respawn:/sbin/mingetty tty5
c6:1234:respawn:/sbin/mingetty tty6

# Serial lines
#s1:12345:respawn:/sbin/agetty 19200 ttyS0 vt100
#s2:12345:respawn:/sbin/agetty 38400 ttyS1 vt102

# Dialup lines
#d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
#d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100

# End of /etc/inittab
