/usr/share/jasper-initramfs/init/serial.conf is in jasper 0.69.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #!/bin/sh
#
# This service maintains a getty on serial port given as 'console' kernel argument.
#
# Last 'console' argument is used
#
start on (runlevel [23]
or stopping oem-config-debconf)
stop on runlevel [!23]
respawn
script
# check for console entry
[ -z "`grep console /proc/cmdline`" ] && exit 0
# we cant run while oem-config runs
[ -e /etc/init/oem-config-debconf.conf ] && exit 0
for arg in $(cat /proc/cmdline)
do
case $arg in
console=*)
[ ! -z `echo $arg | egrep "tty([0-9]+)"` ] && exit 0
conargs=${arg#*=}
DEV=${conargs%,*}
exec /sbin/getty -m -8 115200,57600,38400,19200,9600,4800,2400,1200 $DEV
esac
done
end script
|