inittab 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # /etc/inittab:
  2. #
  3. # The inittab(5) file describes which processes are started at
  4. # boot-up and during normal operation distinguishes multiple
  5. # runlevels, each of which can have its own set of processes
  6. # that are started.
  7. #
  8. # Copyright (c) 2018 Matias Fonzo, <selk@dragora.org>.
  9. #
  10. # Licensed under the Apache License, Version 2.0 (the "License");
  11. # you may not use this file except in compliance with the License.
  12. # You may obtain a copy of the License at
  13. #
  14. # http://www.apache.org/licenses/LICENSE-2.0
  15. #
  16. # Unless required by applicable law or agreed to in writing, software
  17. # distributed under the License is distributed on an "AS IS" BASIS,
  18. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. # See the License for the specific language governing permissions and
  20. # limitations under the License.
  21. # Init runlevels in Dragora
  22. # 0 = Halt or power-off
  23. # 1 = Single-user mode
  24. # 2 = -> 3
  25. # 3 = Multi-user mode
  26. # 4 = X Window sessions
  27. # 5 = ^ 4
  28. # 6 = Reboot
  29. # Set default runlevel
  30. id:3:initdefault:
  31. # System initialization
  32. si::sysinit:/etc/rc.d/rc.startup
  33. # Runlevel scripts
  34. r0:0:wait:/etc/rc.d/rc.shutdown
  35. r1:1S:wait:/etc/rc.d/rc.single
  36. r3:2345:wait:/etc/rc.d/rc.multiuser
  37. r4:45:respawn:/etc/rc.d/rc.x11
  38. r6:6:wait:/etc/rc.d/rc.reboot
  39. # What to do when the "magic keys" are pressed
  40. ca::ctrlaltdel:/sbin/shutdown -t 3 -r now
  41. # Virtual consoles to log in
  42. c1:123:respawn:/sbin/agetty --noclear tty1 38400 linux
  43. c2:123:respawn:/sbin/agetty tty2 38400 linux
  44. c3:12345:respawn:/sbin/agetty tty3 38400 linux
  45. #c4:12345:respawn:/sbin/agetty tty4 38400 linux
  46. #c5:12345:respawn:/sbin/agetty tty5 38400 linux
  47. #c6:12345:respawn:/sbin/agetty tty6 38400 linux
  48. # Local serial lines
  49. #s1:12345:respawn:/sbin/agetty -L always ttyS0 115200 vt100
  50. #s2:12345:respawn:/sbin/agetty -L always ttyS1 115200 vt100