# # /etc/inittab # # Copyright (c) 1996 S.u.S.E. GmbH Fuerth, Germany. All rights reserved. # # Author: Florian La Roche , 1996 # # This is the main configuration file of /sbin/init, which # is executed by the kernel on startup. It describes what # scripts are used for the different run-levels. # # All scripts for runlevel changes are in /sbin/init.d/ and the main # file for changes is /etc/rc.config. # # default runlevel id:2:initdefault: # check system on startup # first script to be executed if not booting in emergency (-b) mode si:I:wait:/sbin/init.d/boot # /sbin/init.d/rc takes care of runlevel handling # # runlevel 0 is halt # runlevel S is single-user # runlevel 1 is multi-user without network # runlevel 2 is multi-user with network # runlevel 3 is multi-user with network and xdm # runlevel 6 is reboot l0:0:wait:/sbin/init.d/rc 0 l1:1:wait:/sbin/init.d/rc 1 l2:2:wait:/sbin/init.d/rc 2 l3:3:wait:/sbin/init.d/rc 3 l6:6:wait:/sbin/init.d/rc 6 # what to do in single-user mode ls:S:wait:/sbin/init.d/rc S ~~:S:respawn:/sbin/sulogin # what to do when CTRL-ALT-DEL is pressed ca::ctrlaltdel:/sbin/shutdown -r -t 4 now # special keyboard request (Alt-UpArrow) # look into the kbd-0.90 docs for this kb::kbrequest:/bin/echo "Keyboard Request -- edit /etc/inittab to let this work." # what to do when power fails/returns pf::powerwait:/sbin/init.d/powerfail start pn::powerfailnow:/sbin/init.d/powerfail now po::powerokwait:/sbin/init.d/powerfail stop # getty-programs for the normal runlevels # ::: # The "id" field MUST be the same as the last # characters of the device (after "tty"). 1:123:respawn:/sbin/mingetty --noclear tty1 2:123:respawn:/sbin/mingetty tty2 3:123:respawn:/sbin/mingetty tty3 4:123:respawn:/sbin/mingetty tty4 5:123:respawn:/sbin/mingetty tty5 6:123:respawn:/sbin/mingetty tty6 7:123:respawn:/sbin/mingetty tty7 8:123:respawn:/sbin/mingetty tty8 9:123:respawn:/sbin/mingetty tty9 # modem getty. mo:23:respawn:/usr/sbin/mgetty modem #mo:23:respawn:/usr/sbin/mgetty -s 57600 modem #mo:23:respawn:/usr/sbin/mgetty -m '""ATZ OK' -s 57600 modem #mo:123:respawn:/usr/sbin/mgetty ttys0 # # ISDN lines # I0:23:respawn:/usr/sbin/mgetty -D -m '"" ATZ OK AT&E38 OK AT&B512 OK' -s 38400 ttyI0 I1:23:respawn:/usr/sbin/mgetty -D -m '"" ATZ OK AT&E38 OK AT&B512 OK' -s 38400 ttyI1 # end of /etc/inittab