mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-06 09:27:49 +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.
|
||||
################################################################################
|
||||
|
||||
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
|
||||
|
||||
case "$TERM" in
|
||||
|
@ -1,19 +1,24 @@
|
||||
[Unit]
|
||||
Description=Debug Shell
|
||||
DefaultDependencies=false
|
||||
|
||||
ConditionKernelCommandLine=debugging
|
||||
|
||||
[Service]
|
||||
Environment=HOME=/storage TERM=linux
|
||||
Environment=TTY=3
|
||||
WorkingDirectory=/storage
|
||||
ExecStart=/sbin/getty -n 38400 tty3
|
||||
ExecStart=/bin/sh -c '. /etc/profile; exec /bin/sh'
|
||||
|
||||
Restart=always
|
||||
RestartSec=0
|
||||
TimeoutSec=0
|
||||
StandardInput=tty
|
||||
TTYPath=/dev/tty3
|
||||
TTYReset=yes
|
||||
TTYVHangup=yes
|
||||
KillMode=process
|
||||
|
||||
# Some login implementations ignore SIGTERM, so we send SIGHUP
|
||||
# instead, to ensure that login terminates cleanly.
|
||||
IgnoreSIGPIPE=no
|
||||
# bash ignores SIGTERM
|
||||
KillSignal=SIGHUP
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=basic.target
|
||||
|
Loading…
x
Reference in New Issue
Block a user