]> TLD Linux GIT Repositories - rc-scripts.git/blob - inittab
- disable lock checks (happens on LUKS2 and fails during system boot)
[rc-scripts.git] / inittab
1 #
2 # inittab       This file describes how the INIT process should set up
3 #               the system in a certain run-level.
4 #
5 #
6 # Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
7 #               Modified for RHS Linux by Marc Ewing and Donnie Barnes
8 #
9
10 # Default runlevel. The runlevels used by TLD Linux are:
11 #   0 - halt (Do NOT set initdefault to this)
12 #   1 - Single user mode
13 #   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
14 #   3 - Full multiuser mode
15 #   4 - unused
16 #   5 - X11
17 #   6 - reboot (Do NOT set initdefault to this)
18 #
19 id:3:initdefault:
20
21 # System initialization.
22 si::sysinit:/etc/rc.d/rc.sysinit
23
24 l0:0:wait:/etc/rc.d/rc 0
25 l1:1:wait:/etc/rc.d/rc 1
26 l2:2:wait:/etc/rc.d/rc 2
27 l3:3:wait:/etc/rc.d/rc 3
28 l4:4:wait:/etc/rc.d/rc 4
29 l5:5:wait:/etc/rc.d/rc 5
30 l6:6:wait:/etc/rc.d/rc 6
31
32 # Trap CTRL-ALT-DELETE
33 ca::ctrlaltdel:/sbin/shutdown -t3 -r now
34
35 # Trap KeyboardSignal
36 #kb::kbrequest:<insert your action here>
37
38 # When our UPS tells us power has failed, assume we have a few minutes
39 # of power left.  Schedule a shutdown for 2 minutes from now.
40 # This does, of course, assume you have powerd installed and your
41 # UPS connected and working correctly.
42 pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"
43
44 # If power was restored before the shutdown kicked in, cancel it.
45 pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"
46
47 # Run agetty on serial port
48 #s0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100
49 #s1:12345:respawn:/sbin/agetty 115200 ttyS1 vt100
50
51 # Run gettys in standard runlevels
52 1:12345:respawn:/sbin/mingetty --noclear tty1
53 # spawn root login on tty1 without /etc/issue
54 #1:12345:respawn:/sbin/mingetty tty1 --noclear --autologin root --noissue
55 2:2345:respawn:/sbin/mingetty tty2
56 3:2345:respawn:/sbin/mingetty tty3
57 #4:2345:respawn:/sbin/mingetty tty4
58 #5:2345:respawn:/sbin/mingetty tty5
59 #6:2345:respawn:/sbin/mingetty tty6
60 #7:2345:respawn:/sbin/mingetty tty7
61 #8:2345:respawn:/sbin/mingetty tty8
62 #9:2345:respawn:/sbin/mingetty tty9
63 #10:2345:respawn:/sbin/mingetty tty10
64 #11:2345:respawn:/sbin/mingetty tty11
65 #12:2345:respawn:/sbin/mingetty tty12
66
67 # Examples
68 #9:2345:respawn:/sbin/mingetty --mono tty9
69 #10:2345:respawn:/sbin/mingetty --remote-host=some.host.in.net.pl tty10
70
71 # Run xdm in runlevel 5
72 #x:5:respawn:/usr/bin/X11/xdm -nodaemon