Files
LibreELEC.tv/projects/RPi2/filesystem/usr/lib/systemd/system/serial-console.service
Haggai Eran a09ae66ee4 projects/RPi*: add serial console service
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
2015-09-15 14:13:08 +02:00

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