3a2f83b0f1ac223a834f77b13445bae8ade08964
[grml-etc.git] / etc / inittab.grml
1 # Filename:      inittab
2 # Purpose:       init(8) configuration.
3 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
4 # Bug-Reports:   see http://grml.org/bugs/
5 # License:       This file is licensed under the GPL v2.
6 # Latest change: Don Okt 12 16:48:03 CEST 2006 [mika]
7 ################################################################################
8
9 # The default runlevel.
10 id:2:initdefault:
11
12 # Boot-time system configuration/initialization script.
13 # This is run first except when booting in emergency (-b) mode.
14 si::sysinit:/etc/init.d/rcS
15
16 # What to do in single-user mode.
17 ~~:S:respawn:/bin/zsh --login >/dev/tty1 2>&1 </dev/tty1
18
19 # /etc/init.d executes the S and K scripts upon change
20 # of runlevel.
21 #
22 # Runlevel 0 is halt.
23 # Runlevel 1 is single-user.
24 # Runlevels 2-5 are multi-user.
25 # Runlevel 6 is reboot.
26
27 l0:0:wait:/etc/init.d/grml-halt
28 l1:1:wait:/etc/init.d/rc 1
29 l2:2:wait:/etc/init.d/rc 2
30 l3:3:wait:/etc/init.d/rc 3
31 l4:4:wait:/etc/init.d/rc 4
32 l5:5:wait:/etc/init.d/rc 5
33 l6:6:wait:/etc/init.d/grml-reboot
34
35 # What to do when CTRL-ALT-DEL is pressed.
36 ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
37
38 # Action on special keypress (ALT-UpArrow).
39 kb::kbrequest:/bin/echo "Keyboard Request -- edit /etc/inittab to let this work."
40
41 # What to do when the power fails/returns.
42 pf::powerwait:/etc/init.d/powerfail start
43 pn::powerfailnow:/etc/init.d/powerfail now
44 po::powerokwait:/etc/init.d/powerfail stop
45
46 # /sbin/getty invocations for the runlevels.
47 #
48 # The "id" field MUST be the same as the last
49 # characters of the device (after "tty").
50 #
51 # Format:
52 #  <id>:<runlevels>:<action>:<process>
53 # 4 virtual consoles with immortal shells
54 # 1:12345:respawn:/bin/zsh --login -c "/usr/bin/grml-start ; /usr/bin/grml-screen" >/dev/tty1 2>&1 </dev/tty1
55 # 1:12345:respawn:/usr/bin/openvt -f -c 1 -w -- /usr/bin/zsh -l
56 1:12345:respawn:/sbin/rungetty tty1 --noclear -u root -g root --autologin root /usr/bin/zsh-login
57 2:2345:respawn:/sbin/rungetty tty2 -u root -g root --autologin root /usr/bin/grml-init-screen
58 3:2345:respawn:/sbin/rungetty tty3 -u root -g root --autologin root /usr/bin/grml-init-screen
59 4:2345:respawn:/sbin/rungetty tty4 -u grml -g grml --autologin grml /usr/bin/grml-init
60 5:2345:respawn:/sbin/rungetty tty5 -u grml -g grml --autologin grml /usr/bin/grml-init
61 6:2345:respawn:/sbin/rungetty tty6 -u grml -g grml --autologin grml /usr/bin/grml-init
62 # Note that on most Debian systems tty7 is used by the X Window System.
63 # Use tty8 for a second xserver.
64 9:2345:respawn:/sbin/getty  38400 tty9
65 10:2345:respawn:/bin/zsh --login -c "/usr/sbin/grml-iptstate ; /usr/bin/grml-init-screen" >/dev/tty10 2>&1 </dev/tty10
66 11:2345:respawn:/bin/zsh --login -c "/usr/bin/htop ; /usr/bin/grml-init-screen" >/dev/tty11 2>&1 </dev/tty11
67 # running console-log on 12 already
68 #12:2345:respawn:/bin/zsh --login -c "/usr/bin/less +F /var/log/syslog ; /usr/bin/grml-screen" >/dev/tty12 2>&1 </dev/tty12
69 12:2345:respawn:/bin/zsh --login -c "/usr/bin/grml-init-multitail ; /usr/bin/grml-init-screen" >/dev/tty12 2>&1 </dev/tty12
70
71 # Restart init with new configuration?
72 # kill -1 1
73
74 # Run gettys in standard runlevels
75 #1:2345:respawn:/sbin/mingetty tty1
76 #2:2345:respawn:/sbin/mingetty tty2
77 #3:2345:respawn:/sbin/mingetty tty3
78 #4:2345:respawn:/sbin/mingetty tty4
79 #5:2345:respawn:/sbin/mingetty tty5
80 #6:2345:respawn:/sbin/mingetty tty6
81
82 # Example how to put a getty on a serial line (for a terminal)
83 #
84 # T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
85 # T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
86
87 # Important! Please do not remove the following 2 lines as the are important for cheatcode serial:
88 #T0:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS0 || sleep 30"
89 #T1:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS1 || sleep 30"
90 # Important! #####################################################################################
91
92 # Example how to put a getty on a modem line.
93 #
94 #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3
95
96 #-- isdnutils begin
97 # Change the lines below for your local setup and uncomment them.
98 # Use "init q" to reread inittab.
99 # look at the vboxgetty / mgetty manpage for more information (mgetty isn't
100 # standard!)
101 #
102 #I0:2345:respawn:/usr/sbin/vboxgetty -d /dev/ttyI0
103 #I1:2345:respawn:/sbin/mgetty -D -m '"" ATZ OK AT&Eyourmsnhere OK AT&B512 OK' -s 38400 ttyI1
104 #-- isdnutils end
105 # Run X Window session from CDROM in runlevel 5
106 #w5:5:wait:/bin/sleep 2
107 #x5:5:wait:/etc/init.d/xsession start
108 # Use line below to use secvpnmon. Use init q to reread inittab.
109 # SVPN:2345:respawn:/usr/sbin/secvpnmon