mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
systemd: enable switch debug-tty to provide a debug console
This allows us to use the default debug-shell.service provided by systemd and cut down on custom made services. This will also always provide a debug shell as there is no reason we shouldn't have access to one.
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
[Unit]
|
||||
Description=Debug Shell on /dev/ttyS2
|
||||
DefaultDependencies=no
|
||||
ConditionKernelCommandLine=|console=ttyS2
|
||||
ConditionKernelCommandLine=|console=uart8250,mmio32,0xff130000
|
||||
ConditionKernelCommandLine=|console=uart8250,mmio32,0xff1a0000
|
||||
ConditionKernelCommandLine=|console=uart8250,mmio32,0xff690000
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/storage
|
||||
Environment="ENV=/etc/profile"
|
||||
ExecStartPre=/bin/sh -c 'echo -en "\033[?25h"'
|
||||
ExecStart=/bin/sh
|
||||
Restart=always
|
||||
RestartSec=0
|
||||
StandardInput=tty
|
||||
TTYPath=/dev/ttyS2
|
||||
KillMode=process
|
||||
IgnoreSIGPIPE=no
|
||||
# bash ignores SIGTERM
|
||||
KillSignal=SIGHUP
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
Reference in New Issue
Block a user