#!/bin/sh
# kdialog wrapper for configuring ports options.

echo '-*- Custom installation options'

if [ -z "$DISPLAY" ]; then
	# No display found, using text mode.

	exec /usr/bin/dialog "$@"
else
	text="${2}."
	shift 5

	exec /usr/local/bin/kdialog --geometry "360x260" --checklist "${text}" "$@" >/dev/stderr
fi
