2013-08-04 16:50:37 +02:00
|
|
|
[Unit]
|
|
|
|
|
Description=Debug Shell
|
2013-08-16 12:22:06 +02:00
|
|
|
|
2014-10-19 17:36:55 +03:00
|
|
|
DefaultDependencies=no
|
2013-10-07 22:57:29 +03:00
|
|
|
ConditionKernelCommandLine=|tty
|
2013-08-30 20:35:24 +03:00
|
|
|
ConditionKernelCommandLine=|debugging
|
2016-03-11 22:31:41 +01:00
|
|
|
ConditionPathExists=|/storage/.cache/debug.libreelec
|
2013-08-04 16:50:37 +02:00
|
|
|
|
|
|
|
|
[Service]
|
2013-08-16 12:22:06 +02:00
|
|
|
Environment=TTY=3
|
2013-08-04 16:50:37 +02:00
|
|
|
WorkingDirectory=/storage
|
2013-08-16 12:22:06 +02:00
|
|
|
ExecStart=/bin/sh -c '. /etc/profile; exec /bin/sh'
|
2013-08-04 16:50:37 +02:00
|
|
|
Restart=always
|
|
|
|
|
RestartSec=0
|
2013-08-16 12:22:06 +02:00
|
|
|
StandardInput=tty
|
|
|
|
|
TTYPath=/dev/tty3
|
|
|
|
|
TTYReset=yes
|
|
|
|
|
TTYVHangup=yes
|
2013-08-04 16:50:37 +02:00
|
|
|
KillMode=process
|
2013-08-16 12:22:06 +02:00
|
|
|
IgnoreSIGPIPE=no
|
|
|
|
|
# bash ignores SIGTERM
|
2013-08-04 16:50:37 +02:00
|
|
|
KillSignal=SIGHUP
|
|
|
|
|
|
|
|
|
|
[Install]
|
2014-10-19 17:36:55 +03:00
|
|
|
WantedBy=sysinit.target
|