mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 20:56:55 +00:00
projects/WeTek: add serial console service
This commit is contained in:
parent
521a42cce4
commit
981a7b1007
@ -0,0 +1,22 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Debug Shell on /dev/ttyS0
|
||||||
|
DefaultDependencies=no
|
||||||
|
ConditionKernelCommandLine=|console=ttyS0,115200
|
||||||
|
ConditionKernelCommandLine=|console=ttyS0,115200n8
|
||||||
|
|
||||||
|
[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/ttyS0
|
||||||
|
KillMode=process
|
||||||
|
IgnoreSIGPIPE=no
|
||||||
|
# bash ignores SIGTERM
|
||||||
|
KillSignal=SIGHUP
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sysinit.target
|
@ -0,0 +1,21 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Debug Shell on /dev/ttyS0
|
||||||
|
DefaultDependencies=no
|
||||||
|
ConditionKernelCommandLine=console=ttyS0,115200
|
||||||
|
|
||||||
|
[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/ttyS0
|
||||||
|
KillMode=process
|
||||||
|
IgnoreSIGPIPE=no
|
||||||
|
# bash ignores SIGTERM
|
||||||
|
KillSignal=SIGHUP
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sysinit.target
|
@ -0,0 +1,22 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Debug Shell on /dev/ttyS0
|
||||||
|
DefaultDependencies=no
|
||||||
|
ConditionKernelCommandLine=|console=ttyS0,115200
|
||||||
|
ConditionKernelCommandLine=|console=ttyS0,115200n8
|
||||||
|
|
||||||
|
[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/ttyS0
|
||||||
|
KillMode=process
|
||||||
|
IgnoreSIGPIPE=no
|
||||||
|
# bash ignores SIGTERM
|
||||||
|
KillSignal=SIGHUP
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sysinit.target
|
Loading…
x
Reference in New Issue
Block a user