Skip to content

Instantly share code, notes, and snippets.

@0mhx
Created October 10, 2025 16:19
Show Gist options
  • Select an option

  • Save 0mhx/be65ceb286c50e6bd866c77de85f07c2 to your computer and use it in GitHub Desktop.

Select an option

Save 0mhx/be65ceb286c50e6bd866c77de85f07c2 to your computer and use it in GitHub Desktop.
shoiiii
[Unit]
Description=Serial Console on Gadget
After=systemd-user-sessions.service plymouth-quit-wait.service
After=dev-ttyGS0.device
Requires=dev-ttyGS0.device
[Service]
ExecStart=-/sbin/agetty -L 115200 ttyGS0 vt100
Restart=always
RestartSec=0
UtmpIdentifier=ttyGS0
TTYPath=/dev/ttyGS0
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process
IgnoreSIGPIPE=no
SendSIGHUP=yes
[Install]
WantedBy=getty.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment