3afe726c233955100544d5026132e09484e36916
[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: Sam Jun 25 00:48:55 CEST 2005 [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::ctrlaltdel:/etc/init 0
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 -u root -g root --autologin root /usr/bin/grml-init
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 # Note that on most Debian systems tty7 is used by the X Window System.
57
58 # Restart init with new configuration?
59 # kill -1 1
60
61 # Run gettys in standard runlevels
62 #1:2345:respawn:/sbin/mingetty tty1
63 #2:2345:respawn:/sbin/mingetty tty2
64 #3:2345:respawn:/sbin/mingetty tty3
65 #4:2345:respawn:/sbin/mingetty tty4
66 #5:2345:respawn:/sbin/mingetty tty5
67 #6:2345:respawn:/sbin/mingetty tty6
68
69 # Example how to put a getty on a serial line (for a terminal)
70 #
71 # T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
72 # T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
73 #T0:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS0 || sleep 30"
74 #T1:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS1 || sleep 30"
75
76 # Example how to put a getty on a modem line.
77 #
78 #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3
79
80 #-- isdnutils begin
81 # Change the lines below for your local setup and uncomment them.
82 # Use "init q" to reread inittab.
83 # look at the vboxgetty / mgetty manpage for more information (mgetty isn't
84 # standard!)
85 #
86 #I0:2345:respawn:/usr/sbin/vboxgetty -d /dev/ttyI0
87 #I1:2345:respawn:/sbin/mgetty -D -m '"" ATZ OK AT&Eyourmsnhere OK AT&B512 OK' -s 38400 ttyI1
88 #-- isdnutils end
89 # Run X Window session from CDROM in runlevel 5
90 #w5:5:wait:/bin/sleep 2
91 #x5:5:wait:/etc/init.d/xsession start