/usr/share/ltsp/plugins/ltsp-build-client/ALTLinux/040-serial-console is in ltsp-server 5.4.2-6+deb7u1.
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 | case "$MODE" in
commandline)
add_option "serial-console" "`eval_gettext "enable serial console"`" "advanced" "false"
;;
configure)
if [ -n "$option_serial_console_value" ]; then
SERIAL_CONSOLE=true
fi
;;
after-install)
if [ "true" = "$SERIAL_CONSOLE" ] && [ -z "$(egrep ^T0 $ROOT/etc/inittab)" ]; then
echo "`eval_gettext "Enabling serial console..."`"
echo "T0:2345:respawn:/sbin/getty -L ttyS0 38400 screen" >> "$ROOT/etc/inittab"
fi
;;
esac
|