home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / armlinux / alpha / PARTITIONS / ROOT_GZ / root / etc / inittab < prev    next >
Encoding:
Text File  |  1995-06-26  |  2.6 KB  |  85 lines

  1. #
  2. # inittab    This file describes how the INIT process should set up
  3. #        the system in a certain run-level.
  4. #
  5. # Version:    @(#)inittab        2.04    17/05/93    MvS
  6. #
  7. # Author:    R.M.King (20 Feb 1995)
  8. #
  9. # Run levels:
  10. #   H    halt system
  11. #   R    reboot system
  12. #   S    single user mode
  13. #   0    shutdown to single user mode
  14. #   1    normal run level
  15. #   2-9  use definable
  16. #
  17. # Default runlevel.
  18. id:2:initdefault:
  19.  
  20. # System initialization (runs when system boots).
  21. si::sysinit:/etc/rc.d/rc.S
  22.  
  23. # Script to run when going single user.
  24. su:S:wait:/etc/rc.d/rc.K
  25.  
  26. # Script to run when going multi user.
  27. rc:123456789:wait:/etc/rc.d/rc.M
  28.  
  29. # What to do at the "Three Finger Salute".
  30. ca::ctrlaltdel:/sbin/shutdown -t3 -rf now
  31.  
  32. # scripts for system halt/reboot entries
  33. sh:H:wait:/etc/rc.d/rc.halt
  34. sr:R:wait:/etc/rc.d/rc.reboot
  35.  
  36. # script for changing to single user mode
  37. s0:0:wait:/etc/rc.d/rc.single
  38.  
  39. # Power failure / restoration entries
  40.  
  41. # What to do when power fails (shutdown to single user).
  42. pf::powerfail:/sbin/shutdown -f +10 "THE POWER IS FAILING"
  43.  
  44. # If power is back before shutdown, cancel the running shutdown.
  45. pg:0123456:powerokwait:/sbin/shutdown -c "THE POWER IS BACK"
  46.  
  47. # If power comes back in single user mode, return to multi user mode.
  48. ps:S:powerokwait:/sbin/init 5
  49.  
  50. # The getties in multi user mode on consoles an serial lines.
  51. #
  52. # NOTE NOTE NOTE adjust this to your getty or you will not be
  53. #                able to login !!
  54. #
  55. # Note: for 'agetty' you use linespeed, line.
  56. # for 'getty_ps' you use line, linespeed and also use 'gettydefs'
  57. c1:12345678:respawn:/sbin/agetty 38400 tty1
  58. c2:2345678:respawn:/sbin/agetty 38400 tty2
  59. c3:345678:respawn:/sbin/agetty 38400 tty3
  60. c4:45678:respawn:/sbin/agetty 38400 tty4
  61. c5:5678:respawn:/sbin/agetty 38400 tty5
  62. c6:678:respawn:/sbin/agetty 38400 tty6
  63.  
  64. # Serial lines
  65. #s1:45:respawn:/sbin/agetty 19200 ttyS0
  66. #s2:45:respawn:/sbin/agetty 19200 ttyS1
  67. #s3:45:respawn:/sbin/agetty 19200 ttyS2
  68. #s4:45:respawn:/sbin/agetty 19200 ttyS3
  69.  
  70. # Dialup lines
  71. #d1:46:respawn:/sbin/agetty -mt60 2400,1200,600,300 ttyS0
  72. #d1:46:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0
  73. #d2:46:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1
  74. #d3:46:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS2
  75. #d4:46:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS3
  76.  
  77. # Runlevel 6 used to be for an X-window only system, until we discovered
  78. # that it throws init into a loop that keeps your load avg at least 1 all 
  79. # the time. Thus, there is now one getty opened on tty6. Hopefully no one
  80. # will notice. ;^)
  81. # It might not be bad to have one text console anyway, in case something 
  82. # happens to X.
  83. x1:9:wait:/etc/rc.d/rc.6
  84.  
  85.