#!/bin/sh -e
# Displays some final messages to the user before they are dropped into a
# login prompt.
. /usr/share/debconf/confmodule

db_title 'Debian System Configuration'
# Only show messages on a new install.
if [ "$1" = "new" ]; then
	. /root/dbootstrap_settings || true
	
	# Only display the VT message if they seem to be at a tty.
	# TODO: the messages about logging in and switching tty's should
	# be split up, but it makes sense to combine them for now since
	# only the dialog frontend is available.
	if [ "$SERIALCONSOLE" = true ]; then
		db_input medium base-config/login || true
	else
		db_input medium base-config/login-with-tty || true
	fi
	db_go || true
fi
