Dobbie03

autologin

Dec 26th, 2017
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # SPDX-License-Identifier: LGPL-2.1+
  2. #
  3. # This file is part of systemd.
  4. #
  5. # systemd is free software; you can redistribute it and/or modify it
  6. # under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2.1 of the License, or
  8. # (at your option) any later version.
  9.  
  10. [Unit]
  11. Description=Getty on %I
  12. Documentation=man:agetty(8) man:systemd-getty-generator(8)
  13. Documentation=http://0pointer.de/blog/projects/serial-console.html
  14. After=systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target
  15.  
  16. # If additional gettys are spawned during boot then we should make
  17. # sure that this is synchronized before getty.target, even though
  18. # getty.target didn't actually pull it in.
  19. Before=getty.target
  20. IgnoreOnIsolate=yes
  21.  
  22. # IgnoreOnIsolate causes issues with sulogin, if someone isolates
  23. # rescue.target or starts rescue.service from multi-user.target or
  24. # graphical.target.
  25. Conflicts=rescue.service
  26. Before=rescue.service
  27.  
  28. # On systems without virtual consoles, don't start any getty. Note
  29. # that serial gettys are covered by serial-getty@.service, not this
  30. # unit.
  31. ConditionPathExists=/dev/tty0
  32.  
  33. [Service]
  34. # the VT is cleared by TTYVTDisallocate
  35. # The '-o' option value tells agetty to replace 'login' arguments with an
  36. # option to preserve environment (-p), followed by '--' for safety, and then
  37. # the entered username.
  38. ExecStart=-/sbin/agetty -a dobbie %I $TERM
  39. Type=idle
  40. Restart=always
  41. RestartSec=0
  42. UtmpIdentifier=%I
  43. TTYPath=/dev/%I
  44. TTYReset=yes
  45. TTYVHangup=yes
  46. TTYVTDisallocate=yes
  47. KillMode=process
  48. IgnoreSIGPIPE=no
  49. SendSIGHUP=yes
  50.  
  51. # Unset locale for the console getty since the console has problems
  52. # displaying some internationalized messages.
  53. UnsetEnvironment=LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION
  54.  
  55. [Install]
  56. WantedBy=getty.target
  57. DefaultInstance=tty1
RAW Paste Data