1 | # |
---|
2 | # inittab This file describes how the INIT process should set up |
---|
3 | # the system in a certain run-level. |
---|
4 | # |
---|
5 | # Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org> |
---|
6 | # Modified for RHS Linux by Marc Ewing and Donnie Barnes |
---|
7 | # |
---|
8 | |
---|
9 | # Default runlevel. The runlevels used by RHS are: |
---|
10 | # 0 - halt (Do NOT set initdefault to this) |
---|
11 | # 1 - Single user mode |
---|
12 | # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) |
---|
13 | # 3 - Full multiuser mode |
---|
14 | # 4 - unused |
---|
15 | # 5 - X11 |
---|
16 | # 6 - reboot (Do NOT set initdefault to this) |
---|
17 | # |
---|
18 | id:3:initdefault: |
---|
19 | |
---|
20 | # System initialization. |
---|
21 | si::sysinit:/etc/rc.d/rc.sysinit |
---|
22 | |
---|
23 | l0:0:wait:/etc/rc.d/rc 0 |
---|
24 | l1:1:wait:/etc/rc.d/rc 1 |
---|
25 | l2:2:wait:/etc/rc.d/rc 2 |
---|
26 | l3:3:wait:/etc/rc.d/rc 3 |
---|
27 | l4:4:wait:/etc/rc.d/rc 4 |
---|
28 | l5:5:wait:/etc/rc.d/rc 5 |
---|
29 | l6:6:wait:/etc/rc.d/rc 6 |
---|
30 | |
---|
31 | # Things to run in every runlevel. |
---|
32 | ud::once:/sbin/update |
---|
33 | |
---|
34 | # Trap CTRL-ALT-DELETE |
---|
35 | ca::ctrlaltdel:/sbin/shutdown -t3 -r now |
---|
36 | |
---|
37 | # When our UPS tells us power has failed, assume we have a few minutes |
---|
38 | # of power left. Schedule a shutdown for 2 minutes from now. |
---|
39 | # This does, of course, assume you have powerd installed and your |
---|
40 | # UPS connected and working correctly. |
---|
41 | pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down" |
---|
42 | |
---|
43 | # If power was restored before the shutdown kicked in, cancel it. |
---|
44 | pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled" |
---|
45 | |
---|
46 | |
---|
47 | # Run gettys in standard runlevels |
---|
48 | 1:12345:respawn:/sbin/mingetty tty1 |
---|
49 | 2:2345:respawn:/sbin/mingetty tty2 |
---|
50 | 3:2345:respawn:/sbin/mingetty tty3 |
---|
51 | 4:2345:respawn:/sbin/mingetty tty4 |
---|
52 | 5:2345:respawn:/sbin/mingetty tty5 |
---|
53 | 6:2345:respawn:/sbin/mingetty tty6 |
---|
54 | |
---|
55 | # Run xdm in runlevel 5 |
---|
56 | #x:5:respawn:/usr/bin/X11/xdm -nodaemon |
---|
57 | x:5:respawn:/etc/athena/dm /etc/athena/login/config ttyp0 console |
---|