inittab 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # /etc/inittab init(8) configuration for BusyBox
  2. #
  3. # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
  4. #
  5. #
  6. # Note, BusyBox init doesn't support runlevels. The runlevels field is
  7. # completely ignored by BusyBox init. If you want runlevels, use sysvinit.
  8. #
  9. #
  10. # Format for each entry: <id>:<runlevels>:<action>:<process>
  11. #
  12. # <id>: WARNING: This field has a non-traditional meaning for BusyBox init!
  13. #
  14. # The id field is used by BusyBox init to specify the controlling tty for
  15. # the specified process to run on. The contents of this field are
  16. # appended to "/dev/" and used as-is. There is no need for this field to
  17. # be unique, although if it isn't you may have strange results. If this
  18. # field is left blank, then the init's stdin/out will be used.
  19. #
  20. # <runlevels>: The runlevels field is completely ignored.
  21. #
  22. # <action>: Valid actions include: sysinit, respawn, askfirst, wait, once,
  23. # restart, ctrlaltdel, and shutdown.
  24. #
  25. # Note: askfirst acts just like respawn, but before running the specified
  26. # process it displays the line "Please press Enter to activate this
  27. # console." and then waits for the user to press enter before starting
  28. # the specified process.
  29. #
  30. # Note: unrecognized actions (like initdefault) will cause init to emit
  31. # an error message, and then go along with its business.
  32. #
  33. # <process>: Specifies the process to be executed and it's command line.
  34. #
  35. # Note: BusyBox init works just fine without an inittab. If no inittab is
  36. # found, it has the following default behavior:
  37. # ::sysinit:/etc/init.d/rcS
  38. # ::askfirst:/bin/sh
  39. # ::ctrlaltdel:/sbin/reboot
  40. # ::shutdown:/sbin/swapoff -a
  41. # ::shutdown:/bin/umount -a -r
  42. # ::restart:/sbin/init
  43. # tty2::askfirst:/bin/sh
  44. # tty3::askfirst:/bin/sh
  45. # tty4::askfirst:/bin/sh
  46. #
  47. # Boot-time system configuration/initialization script.
  48. # This is run first except when booting in single-user mode.
  49. #
  50. ::sysinit:/etc/init.d/rcS
  51. # /bin/sh invocations on selected ttys
  52. #
  53. # Note below that we prefix the shell commands with a "-" to indicate to the
  54. # shell that it is supposed to be a login shell. Normally this is handled by
  55. # login, but since we are bypassing login in this case, BusyBox lets you do
  56. # this yourself...
  57. #
  58. # Start an "askfirst" shell on the console (whatever that may be)
  59. ::askfirst:-/bin/sh
  60. # Start an "askfirst" shell on /dev/tty2-4
  61. tty2::askfirst:-/bin/sh
  62. tty3::askfirst:-/bin/sh
  63. tty4::askfirst:-/bin/sh
  64. # /sbin/getty invocations for selected ttys
  65. tty4::respawn:/sbin/getty 38400 tty5
  66. tty5::respawn:/sbin/getty 38400 tty6
  67. # Example of how to put a getty on a serial line (for a terminal)
  68. #::respawn:/sbin/getty -L ttyS0 9600 vt100
  69. #::respawn:/sbin/getty -L ttyS1 9600 vt100
  70. #
  71. # Example how to put a getty on a modem line.
  72. #::respawn:/sbin/getty 57600 ttyS2
  73. # Stuff to do when restarting the init process
  74. ::restart:/sbin/init
  75. # Stuff to do before rebooting
  76. ::ctrlaltdel:/sbin/reboot
  77. ::shutdown:/bin/umount -a -r
  78. ::shutdown:/sbin/swapoff -a