#!/bin/sh -e
# Ask if dselect should be run, and run it, queuing packages for install.
. /usr/share/debconf/confmodule

db_title 'Debian System Configuration'

if [ -x /usr/bin/dselect ]; then
	# Always ask this, to give users a choice each time..
	db_fset base-config/run-dselect seen false
	db_input medium base-config/run-dselect || true
	db_go || true
	db_get base-config/run-dselect
	if [ "$RET" = true ]; then
		(
			clear
			dselect select || true
			clear
		) >/dev/tty </dev/tty
	fi
fi
