diskimage-builder/elements/enable-serial-console/install.d/ttySx.conf
Cian O'Driscoll 7e58968779 Explicitly name element enable-serial-console
We use an element remove-serial-console in image elements.
Renaming this element to match. Also renaming allows us to use
the serial console in devtest runs.
See - https://review.openstack.org/#/c/86272/

Change-Id: I8f1138f58d0046ccdeefa3decc45c36d95c6bf4b
2014-06-16 09:23:07 -04:00

15 lines
452 B
Text

# 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