mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
Add a console shell for debugging a Raspberry Pi. The shell is added conditionally if the console parameter appears in the kernel command line. The service file follows the template provided by stefansaraev [1]. [1] http://sprunge.us/cBdT
22 lines
399 B
Desktop File
22 lines
399 B
Desktop File
[Unit]
|
|
Description=Debug Shell on /dev/console
|
|
DefaultDependencies=no
|
|
ConditionKernelCommandLine=console
|
|
|
|
[Service]
|
|
WorkingDirectory=/storage
|
|
ExecStart=/bin/sh -c '. /etc/profile; exec /bin/sh'
|
|
Restart=always
|
|
RestartSec=0
|
|
StandardInput=tty
|
|
TTYPath=/dev/console
|
|
TTYReset=yes
|
|
TTYVHangup=yes
|
|
KillMode=process
|
|
IgnoreSIGPIPE=no
|
|
# bash ignores SIGTERM
|
|
KillSignal=SIGHUP
|
|
|
|
[Install]
|
|
WantedBy=sysinit.target
|