/usr/share/tcos/hooks-addons/12getty is in initramfs-tools-tcos 0.89.93ubuntu2.
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | # getty console
# use fgetty if found
#/sbin/fgetty
#/bin/fgetty-login
#/bin/fgetty-login2
#/bin/checkpassword
if [ -e /sbin/fgetty ]; then
stat_before
cpifexists /sbin/fgetty /sbin/
cpifexists /bin/fgetty-login /bin/
cpifexists /bin/fgetty-login2 /bin/
cpifexists /bin/checkpassword /bin/
cat << EOF > $DESTDIR/bin/login
#!/bin/sh
fgetty-login \$@
EOF
chmod +x $DESTDIR/bin/login
cat << EOF > $DESTDIR/sbin/rungetty
#!/bin/sh
VEL=38400
CONSOLE_NUMBER=\$1
if [ "\${CONSOLE_NUMBER}" = "" ]; then
echo "Error: need a console name (example tty1)"
exit 1
fi
while [ 1 ]; do
fgetty \$CONSOLE_NUMBER --noclear >/dev/null 2>&1
sleep 2
done
EOF
chmod +x $DESTDIR/sbin/rungetty
stat_after "fgetty (login)"
fi # end of -e /sbin/fgetty
|