5 kx #
5 kx # inittab This file describes how the INIT process should set up
5 kx # the system in a certain run-level.
5 kx #
5 kx #
5 kx # Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
5 kx # Modified by: Patrick J. Volkerding, <volkerdi@slackware.com>
406 kx # Andrey V. Kosteltsev, <kx@radix-linux.su>
5 kx #
5 kx
5 kx #
5 kx # These are the default runlevels:
5 kx # -------------------------------
5 kx # 0: halt
5 kx # 1: single user mode
5 kx # 2: unused (but configured the same as runlevel 3)
5 kx # 3: multiuser mode (default runlevel)
5 kx # 4: X11 with KDM/GDM/XDM (session managers)
5 kx # 5: unused (but configured the same as runlevel 3)
5 kx # 6: reboot
5 kx #
5 kx # id:runlevels:action:process
5 kx #
5 kx
5 kx # Default runlevel:
5 kx id:3:initdefault:
5 kx
5 kx # System initialization:
5 kx si:S:sysinit:/etc/rc.d/rc.S
5 kx
5 kx # Script to run when going single user:
5 kx su:1S:wait:/etc/rc.d/rc.K
5 kx
5 kx # Script to run when going multi user:
5 kx rc:2345:wait:/etc/rc.d/rc.M
5 kx
5 kx # What to do at the "Three Finger Salute":
5 kx ca::ctrlaltdel:/sbin/shutdown -t5 -r now
5 kx
5 kx # Runlevel 0 halts the system:
5 kx l0:0:wait:/etc/rc.d/rc.0
5 kx
5 kx # Runlevel 6 reboots the system:
5 kx l6:6:wait:/etc/rc.d/rc.6
5 kx
5 kx # Runlevel 4 also starts /etc/rc.d/rc.4 to run a display manager for X.
5 kx # Display managers are preferred in this order: gdm, kdm, xdm
5 kx x1:4:respawn:/etc/rc.d/rc.4
5 kx
5 kx # What to do when power fails:
5 kx pf::powerfail:/sbin/genpowerfail start
5 kx
5 kx # If power is back, cancel the running shutdown:
5 kx pg::powerokwait:/sbin/genpowerfail stop
5 kx
5 kx # These are the standard console login getties in multiuser mode:
5 kx c1:12345:respawn:/sbin/agetty @NOCLEAR@ 38400 tty1 linux
5 kx c2:12345:respawn:/sbin/agetty 38400 tty2 linux
5 kx c3:12345:respawn:/sbin/agetty 38400 tty3 linux
5 kx c4:12345:respawn:/sbin/agetty 38400 tty4 linux
5 kx c5:12345:respawn:/sbin/agetty 38400 tty5 linux
5 kx c6:12345:respawn:/sbin/agetty 38400 tty6 linux
5 kx
5 kx # Dialup lines:
5 kx #d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
5 kx #d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100
5 kx
5 kx # Local serial lines:
5 kx #s1:12345:respawn:/sbin/agetty -L ttyS0 9600 vt100
5 kx #s2:12345:respawn:/sbin/agetty -L ttyS1 9600 vt100
5 kx