b04d9fbfa578df230a0d277c936988c503093795
[grml-etc.git] / etc / inittab.small
1 # Filename:      inittab.small
2 # Purpose:       init(8) configuration for grml-small
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: Son Apr 15 13:10:36 CEST 2007 [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 1:12345:respawn:/sbin/rungetty tty1 --noclear -u root -g root --autologin root /usr/bin/zsh-login
54 2:2345:respawn:/sbin/rungetty tty2 -u grml -g grml --autologin grml /usr/bin/grml-init
55 3:2345:respawn:/sbin/rungetty tty3 -u grml -g grml --autologin grml /usr/bin/grml-init
56 # 4:2345:respawn:/sbin/rungetty tty4 -u grml -g grml --autologin grml /usr/bin/grml-init
57 # 5:2345:respawn:/sbin/rungetty tty5 -u grml -g grml --autologin grml /usr/bin/grml-init
58 # 6:2345:respawn:/sbin/rungetty tty6 -u grml -g grml --autologin grml /usr/bin/grml-init
59 # Note that on most Debian systems tty7 is used by the X Window System.
60 # Use tty8 for a second xserver.
61 # 9:2345:respawn:/sbin/getty  38400 tty9
62 # 10:2345:respawn:/bin/zsh --login -c "/usr/sbin/grml-iptstate ; /usr/bin/grml-init-screen" >/dev/tty10 2>&1 </dev/tty10
63 # 11:2345:respawn:/bin/zsh --login -c "/usr/bin/htop ; /usr/bin/grml-init-screen" >/dev/tty11 2>&1 </dev/tty11
64 # running console-log on 12 already
65 # 12:2345:respawn:/bin/zsh --login -c "/usr/bin/less +F /var/log/syslog ; /usr/bin/grml-screen" >/dev/tty12 2>&1 </dev/tty12
66 # 12:2345:respawn:/bin/zsh --login -c "/usr/bin/multitail /var/log/syslog ; /usr/bin/grml-init-screen" >/dev/tty12 2>&1 </dev/tty12
67
68 # Restart init with new configuration?
69 # kill -1 1
70
71 # Run gettys in standard runlevels
72 #1:2345:respawn:/sbin/mingetty tty1
73 #2:2345:respawn:/sbin/mingetty tty2
74 #3:2345:respawn:/sbin/mingetty tty3
75 #4:2345:respawn:/sbin/mingetty tty4
76 #5:2345:respawn:/sbin/mingetty tty5
77 #6:2345:respawn:/sbin/mingetty tty6
78
79 # Example how to put a getty on a serial line (for a terminal)
80 #
81 # T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
82 # T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
83
84 # Important! Please do not remove the following 2 lines as the are important for cheatcode serial:
85 #T0:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS0 || sleep 30"
86 #T1:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS1 || sleep 30"
87 # Important! #####################################################################################
88
89 # Example how to put a getty on a modem line.
90 #
91 #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3
92
93 #-- isdnutils begin
94 # Change the lines below for your local setup and uncomment them.
95 # Use "init q" to reread inittab.
96 # look at the vboxgetty / mgetty manpage for more information (mgetty isn't
97 # standard!)
98 #
99 #I0:2345:respawn:/usr/sbin/vboxgetty -d /dev/ttyI0
100 #I1:2345:respawn:/sbin/mgetty -D -m '"" ATZ OK AT&Eyourmsnhere OK AT&B512 OK' -s 38400 ttyI1
101 #-- isdnutils end
102 # Run X Window session from CDROM in runlevel 5
103 #w5:5:wait:/bin/sleep 2
104 #x5:5:wait:/etc/init.d/xsession start
105 # Use line below to use secvpnmon. Use init q to reread inittab.
106 # SVPN:2345:respawn:/usr/sbin/secvpnmon