| 1 | # /etc/inittab: init(8) configuration. |
|---|
| 2 | |
|---|
| 3 | # The default runlevel. |
|---|
| 4 | id:2:initdefault: |
|---|
| 5 | |
|---|
| 6 | # Boot-time system configuration/initialization script. |
|---|
| 7 | # This is run first except when booting in emergency (-b) mode. |
|---|
| 8 | si::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 | |
|---|
| 21 | l0:0:wait:/etc/init.d/rc 0 |
|---|
| 22 | l1:1:wait:/etc/init.d/rc 1 |
|---|
| 23 | l2:2:wait:/etc/init.d/rc 2 |
|---|
| 24 | l3:3:wait:/etc/init.d/rc 3 |
|---|
| 25 | l4:4:wait:/etc/init.d/rc 4 |
|---|
| 26 | l5:5:wait:/etc/init.d/rc 5 |
|---|
| 27 | l6:6:wait:/etc/init.d/rc 6 |
|---|
| 28 | # Normally not reached, but fallthrough in case of emergency. |
|---|
| 29 | z6:6:respawn:/sbin/sulogin |
|---|
| 30 | |
|---|
| 31 | # What to do when CTRL-ALT-DEL is pressed. |
|---|
| 32 | ca: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. |
|---|
| 38 | pf::powerwait:/etc/init.d/powerfail start |
|---|
| 39 | pn::powerfailnow:/etc/init.d/powerfail now |
|---|
| 40 | po::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 | # |
|---|
| 62 | T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100 |
|---|
| 63 | #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100 |
|---|
| 64 | #T1:23: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 |
|---|