File: ttySx.conf

package info (click to toggle)
python-diskimage-builder 3.37.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,572 kB
  • sloc: sh: 7,380; python: 6,444; makefile: 37
file content (15 lines) | stat: -rw-r--r-- 452 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This service maintains a getty on ttyS0/1 from the point the system is
# started until it is shut down again.

start on stopped rc or RUNLEVEL=[2345]
stop on runlevel [!2345]

respawn

script
        console_port=0
        echo "ttySx probing ttyS1" >/dev/ttyS1 2>/dev/null && console_port=1
        echo "ttySx:  console tty = /dev/ttyS$console_port" >&2
        exec /sbin/agetty -m ttyS$console_port 115200,57600,38400,9600,4800 vt102

end script