busybox: rework debug shell systemd service scripts

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-16 12:22:06 +02:00
parent ba28a9d1c4
commit afddea760e
2 changed files with 13 additions and 8 deletions

View File

@ -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

View File

@ -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