home *** CD-ROM | disk | FTP | other *** search
- #
- # 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
- #
- # Author: R.M.King (20 Feb 1995)
- #
- # Run levels:
- # H halt system
- # R reboot system
- # S single user mode
- # 0 shutdown to single user mode
- # 1 normal run level
- # 2-9 use definable
- #
- # Default runlevel.
- id:2:initdefault:
-
- # System initialization (runs when system boots).
- si::sysinit:/etc/rc.d/rc.S
-
- # Script to run when going single user.
- su:S:wait:/etc/rc.d/rc.K
-
- # Script to run when going multi user.
- rc:123456789:wait:/etc/rc.d/rc.M
-
- # What to do at the "Three Finger Salute".
- ca::ctrlaltdel:/sbin/shutdown -t3 -rf now
-
- # scripts for system halt/reboot entries
- sh:H:wait:/etc/rc.d/rc.halt
- sr:R:wait:/etc/rc.d/rc.reboot
-
- # script for changing to single user mode
- s0:0:wait:/etc/rc.d/rc.single
-
- # Power failure / restoration entries
-
- # What to do when power fails (shutdown to single user).
- pf::powerfail:/sbin/shutdown -f +10 "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
-
- # The getties in multi user mode on consoles an serial lines.
- #
- # NOTE NOTE NOTE adjust this to your getty or you will not be
- # able to login !!
- #
- # Note: for 'agetty' you use linespeed, line.
- # for 'getty_ps' you use line, linespeed and also use 'gettydefs'
- c1:12345678:respawn:/sbin/agetty 38400 tty1
- c2:2345678:respawn:/sbin/agetty 38400 tty2
- c3:345678:respawn:/sbin/agetty 38400 tty3
- c4:45678:respawn:/sbin/agetty 38400 tty4
- c5:5678:respawn:/sbin/agetty 38400 tty5
- c6:678:respawn:/sbin/agetty 38400 tty6
-
- # Serial lines
- #s1:45:respawn:/sbin/agetty 19200 ttyS0
- #s2:45:respawn:/sbin/agetty 19200 ttyS1
- #s3:45:respawn:/sbin/agetty 19200 ttyS2
- #s4:45:respawn:/sbin/agetty 19200 ttyS3
-
- # Dialup lines
- #d1:46:respawn:/sbin/agetty -mt60 2400,1200,600,300 ttyS0
- #d1:46:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0
- #d2:46:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1
- #d3:46:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS2
- #d4:46:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS3
-
- # Runlevel 6 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:9:wait:/etc/rc.d/rc.6
-
-