source: debwrt/trunk/debian/rootfs/files/etc/inittab @ 228

Last change on this file since 228 was 228, checked in by stappers, 10 years ago

Debian rootfs etc/inittab: 'runlevel' change

this has /dev/tty1, note the 4 and 5

1:2345:respawn:/sbin/getty 38400 tty1

File size: 2.0 KB
Line 
1# /etc/inittab: init(8) configuration.
2
3# The default runlevel.
4id:2:initdefault:
5
6# Boot-time system configuration/initialization script.
7# This is run first except when booting in emergency (-b) mode.
8si::sysinit:/etc/init.d/rcS
9
10# What to do in single-user mode.
11~~:S:wait:/sbin/sulogin
12
13# /etc/init.d executes the S and K scripts upon change
14# of runlevel.
15#
16# Runlevel 0 is halt.
17# Runlevel 1 is single-user.
18# Runlevels 2-5 are multi-user.
19# Runlevel 6 is reboot.
20
21l0:0:wait:/etc/init.d/rc 0
22l1:1:wait:/etc/init.d/rc 1
23l2:2:wait:/etc/init.d/rc 2
24l3:3:wait:/etc/init.d/rc 3
25l4:4:wait:/etc/init.d/rc 4
26l5:5:wait:/etc/init.d/rc 5
27l6:6:wait:/etc/init.d/rc 6
28# Normally not reached, but fallthrough in case of emergency.
29z6:6:respawn:/sbin/sulogin
30
31# What to do when CTRL-ALT-DEL is pressed.
32ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
33
34# Action on special keypress (ALT-UpArrow).
35#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."
36
37# What to do when the power fails/returns.
38pf::powerwait:/etc/init.d/powerfail start
39pn::powerfailnow:/etc/init.d/powerfail now
40po::powerokwait:/etc/init.d/powerfail stop
41
42# /sbin/getty invocations for the runlevels.
43#
44# The "id" field MUST be the same as the last
45# characters of the device (after "tty").
46#
47# Format:
48#  <id>:<runlevels>:<action>:<process>
49#
50# Note that on most Debian systems tty7 is used by the X Window System,
51# so if you want to add more getty's go ahead but skip tty7 if you run X.
52#
53#1:2345:respawn:/sbin/getty 38400 tty1
54#2:23:respawn:/sbin/getty 38400 tty2
55#3:23:respawn:/sbin/getty 38400 tty3
56#4:23:respawn:/sbin/getty 38400 tty4
57#5:23:respawn:/sbin/getty 38400 tty5
58#6:23:respawn:/sbin/getty 38400 tty6
59
60# Example how to put a getty on a serial line (for a terminal)
61#
62T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100
63#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
64#B0:2345:respawn:/sbin/getty -L ttyUSB0 115200 vt100
65
66# Example how to put a getty on a modem line.
67#
68#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3
Note: See TracBrowser for help on using the repository browser.