mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-07 01:47:50 +00:00
busybox: rework debug shell systemd service scripts
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
ba28a9d1c4
commit
afddea760e
@ -23,7 +23,7 @@
|
|||||||
# evironment variables that are not user defined.
|
# evironment variables that are not user defined.
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
PS1="\[\033]0;\h: \w\007\]\[\e[1;32m\]\h\[\e[1;32m\]:\[\e[1;34m\]\w \[\e[0m\]\\$ "
|
PS1="\[\e[1;32m\]\h\[\e[1;32m\]:\[\e[1;34m\]\w \[\e[0m\]\\$ "
|
||||||
export PS1
|
export PS1
|
||||||
|
|
||||||
case "$TERM" in
|
case "$TERM" in
|
||||||
|
@ -1,19 +1,24 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Debug Shell
|
Description=Debug Shell
|
||||||
|
DefaultDependencies=false
|
||||||
|
|
||||||
ConditionKernelCommandLine=debugging
|
ConditionKernelCommandLine=debugging
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=HOME=/storage TERM=linux
|
Environment=TTY=3
|
||||||
WorkingDirectory=/storage
|
WorkingDirectory=/storage
|
||||||
ExecStart=/sbin/getty -n 38400 tty3
|
ExecStart=/bin/sh -c '. /etc/profile; exec /bin/sh'
|
||||||
|
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=0
|
RestartSec=0
|
||||||
TimeoutSec=0
|
StandardInput=tty
|
||||||
|
TTYPath=/dev/tty3
|
||||||
|
TTYReset=yes
|
||||||
|
TTYVHangup=yes
|
||||||
KillMode=process
|
KillMode=process
|
||||||
|
IgnoreSIGPIPE=no
|
||||||
# Some login implementations ignore SIGTERM, so we send SIGHUP
|
# bash ignores SIGTERM
|
||||||
# instead, to ensure that login terminates cleanly.
|
|
||||||
KillSignal=SIGHUP
|
KillSignal=SIGHUP
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=basic.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user