# /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 : minimum HW
# 2 = multiuser text desktop : network
# 3 = multiuser text server  : network, servers
# 4 = multiuser GUI desktop  : network, X-window
# 5 = multiuser GUI server   : network, servers, X-window
# 6 = reboot
#
# This is only for VL Dynamite
# 7/8 = autologin boot !     :  HACKING :P
#
# Default runlevel. (Do not set to 0 or 6 !)
id:2:initdefault:

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

# Multi User Mode 
im:234578:wait:/etc/rc.d/rc.M

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

# Local initialisation in the end of multiuser
il:234578:wait:/etc/rc.d/rc.local

# Kill basic services
k0:0:wait:/etc/rc.d/rc.K   # Halt
k1:1:wait:/etc/rc.d/rc.K   # Single user
k6:6:wait:/etc/rc.d/rc.K   # Reboot

#ud::once:/sbin/update

# What to do at the "Three Finger Salute".
#ca::ctrlaltdel:/sbin/ctrlaltdel
ca::ctrlaltdel:/sbin/shutdown -a -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

# 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'
# 0 is for User Mode Linux only
# 1 is used for autologin, so it is not activated on level 78
#0:12345:respawn:/sbin/mingetty tty0
1:2345:respawn:/sbin/mingetty tty1
2:234578:respawn:/sbin/mingetty tty2
3:234578:respawn:/sbin/mingetty tty3
4:234578:respawn:/sbin/mingetty tty4
5:234578:respawn:/sbin/mingetty tty5
6:234578:respawn:/sbin/mingetty tty6

# Separate console for runlevel 1
# So when switching to runlevel 1 everyone will be loged out
c1:1:respawn:/sbin/mingetty tty1
c2:1:respawn:/sbin/mingetty tty2
c3:1:respawn:/sbin/mingetty tty3
c4:1:respawn:/sbin/mingetty tty4
c5:1:respawn:/sbin/mingetty tty5
c6:1:respawn:/sbin/mingetty tty6

# The getties in multi user mode on consoles an serial lines.
#
# 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

## Launch X for run level 4/5
ix:45:respawn:/etc/rc.d/rc.X

# End of /etc/inittab
