# # inittab This file describes how the INIT process should set up # the system in a certain run-level. # # Version: @(#)inittab 2.04 17/05/93 MvS # 2.10 02/10/95 PV # # Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org> # Modified by: Patrick J. Volkerding, <volkerdi@ftp.cdrom.com> # # Default runlevel. id:5:initdefault: # System initialization (runs when system boots). si:S:sysinit:/etc/rc.d/rc.S # Script to run when going single user (runlevel 1). su:1S:wait:/etc/rc.d/rc.K # Script to run when going multi user. rc:123456:wait:/etc/rc.d/rc.M # What to do at the "Three Finger Salute". ca::ctrlaltdel:/sbin/shutdown -r now # Runlevel 0 halts the system. l0:0:wait:/etc/rc.d/rc.0 # Runlevel 6 reboots the system. l6:6:wait:/etc/rc.d/rc.6 # What to do when power fails (shutdown to single user). pf::powerfail:/sbin/shutdown -f +5 "THE POWER IS FAILING" # If power is back before shutdown, cancel the running shutdown. pg:0123456:powerokwait:/sbin/shutdown -c "THE POWER IS BACK" # If power comes back in single user mode, return to multi user mode. ps:S:powerokwait:/sbin/init 5 # This is to allow you to change consoles by Pressing left-[Alt] & [Up] # arrow key. kb::kbrequest:/usr/local/bin/open -us # The getties in multi user mode on consoles and serial lines. # # NOTE NOTE NOTE adjust this to your getty or you will not be # able to login !! # # Note: for 'agetty' you use linespeed 38400 line tty1. #1:1235:respawn:/sbin/agetty 38400 tty1 <-For example.) # for 'getty_ps' you use line tty1 linespeed 38400 and also have # a '/etc/gettydefs' file. #1:1235:respawn:/sbin/getty tty1 38400 <-For example.) # # There's only TWO mingetty set to run here, because we're useing the program # 'open' to open other consoles with the left-[Alt] & [Up]-arrow-key. 1:1235:respawn:/sbin/mingetty --noclear tty1 2:1235:respawn:/sbin/mingetty tty2 #3:25:respawn:/sbin/mingetty tty3 #4:25:respawn:/sbin/mingetty tty4 #5:25:respawn:/sbin/mingetty tty5 #6:25:respawn:/sbin/mingetty tty6 # Serial lines #s1:45:respawn:/sbin/uugetty ttyS0 38400 vt100 #s2:45:respawn:/sbin/uugetty ttyS1 38400 vt100 #s3:45:respawn:/sbin/uugetty ttyS2 38400 vt100 #s4:45:respawn:/sbin/uugetty ttyS3 38400 vt100 # Dialup lines #d1:45:respawn:/sbin/uugetty ttyS0 -t60 115200,57600,38400,19200,9600 vt100 #d2:45:respawn:/sbin/uugetty ttyS1 -t60 115200,57600,38400,19200,9600 vt100 #d3:45:respawn:/sbin/uugetty ttyS2 -t60 115200,57600,38400,19200,9600 vt100 #d4:45:respawn:/sbin/uugetty ttyS3 -t60 115200,57600,38400,19200,9600 vt100 # Runlevel 4 used to be for an X-window only system, until we discovered # that it throws init into a loop that keeps your load avg at least 1 all # the time. Thus, there is now one getty opened on tty6. Hopefully no one # will notice. ;^) # It might not be bad to have one text console anyway, in case something # happens to X. # x1:4:wait:/etc/rc.d/rc.4 # End of /etc/inittab