# /etc/inittab
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Originall by Patrick volkerdi (Slackware)
# Modified by Eko M. Budi for Vector Linux
# 0 = halt
# 1 = single user mode : no network
# 2 = multiuser text desktop : network
# 3 = multiuser text server : network, servers
# 4 = multiuser GUI desktop : network, X
# 5 = multiuser GUI server : network, X+xdmcp, servers
# 6 = reboot
#
# Factory default is run level 2

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

# Single User Mode (runs when system boots).
si:S:sysinit:/etc/rc.d/rc.S 

# Multi User Mode 
# Note: rc.X is started before init to speed up
# If this does not work, move below
mm:2345:wait:/etc/rc.d/rc.M
mx:45:respawn:/etc/rc.d/rc.X

# Script to run when switching runlevel
i0:0:wait:/etc/rc.d/rc.init
i1:1:wait:/etc/rc.d/rc.init
i2:2:wait:/etc/rc.d/rc.init
i3:3:wait:/etc/rc.d/rc.init
i4:4:wait:/etc/rc.d/rc.init
i5:5:wait:/etc/rc.d/rc.init
i6:6:wait:/etc/rc.d/rc.init

## Move rc.X to here if you want a safer way 
#mx:45:respawn:/etc/rc.d/rc.X

# Local initialisation
ml:2345:wait:/etc/rc.d/rc.local

# Kill basic services
s0:0:wait:/etc/rc.d/rc.0   # Halt
s1:1S:wait:/etc/rc.d/rc.1  # Single user
s6:6:wait:/etc/rc.d/rc.0   # Reboot

#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 2

# 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'
# activate 0 for User Mode Linux only
#0:12345:respwan:/sbin/mingetty tty0
1:12345:respawn:/sbin/mingetty tty1
2:12345:respawn:/sbin/mingetty tty2
3:12345:respawn:/sbin/mingetty tty3
4:12345:respawn:/sbin/mingetty tty4
5:12345:respawn:/sbin/mingetty tty5
6:12345: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
