#!/bin/sh -e
. /usr/share/debconf/confmodule

db_get base-config/selection-path
if [ \( "$RET" = "simple" -a -x /usr/bin/tasksel \) -o ! -x /usr/bin/dselect ]; then
	# Return 0 if tasksel should be run.
	exit 0
else
	# Show message about using dselect and return 1
	db_fset base-config/dselect isdefault true
	db_input medium base-config/dselect || true
	db_go || true

	exit 1
fi
