serial.conf 876 B

123456789101112131415161718192021
  1. # Automatically start a configured serial console
  2. #
  3. # How this works:
  4. #
  5. # On boot, a udev helper examines /dev/console. If a serial console is the
  6. # primary console (last console on the commandline in grub), the event
  7. # 'fedora.serial-console-available <port name> <speed>' is emitted, which
  8. # triggers this script. It waits for the runlevel to finish, ensures
  9. # the proper port is in /etc/securetty, and starts the getty.
  10. #
  11. # If your serial console is not the primary console, or you want a getty
  12. # on serial even if it's not the console, create your own event by copying
  13. # /etc/init/tty.conf, and changing the getty line in that file.
  14. start on fedora.serial-console-available DEV=* and stopped rc RUNLEVEL=[2345]
  15. stop on runlevel [016]
  16. instance $DEV
  17. respawn
  18. pre-start exec /sbin/securetty $DEV
  19. exec /sbin/agetty -l /usr/sbin/qubes-serial-login /dev/$DEV $SPEED vt100-nav