#Patrick volkerdi
# 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:/bin/mosrun -h /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:/bin/mosrun -h /etc/rc.d/rc.sysvinit # Default
l3:3:wait:/bin/mosrun -h /etc/rc.d/rc.sysvinit #
l4:4:wait:/bin/mosrun -h /etc/rc.d/rc.sysvinit #
l5:5:wait:/bin/mosrun -h /etc/rc.d/rc.sysvinit # X window and xdm
l6:6:wait:/bin/mosrun -h /etc/rc.d/rc.6 # Reboot the system

ud::once:/sbin/update
# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t3 -r now


# What to do when power fails (shutdown to single user).
pf::powerfail:/sbin/shutdown -f -h +2 "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'
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
# Run kdm, gdm or xdm at runlevel 5
x:5:respawn:/bin/mosrun -h /etc/rc.d/rc.X
# 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
