You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
623 B

#!/bin/sh
# because debconf sucks
. /usr/share/debconf/confmodule
set -e
tmpfile=$1
choices="$2"
defaults="$3"
question=$4
db_settitle tasksel/title
db_subst $question CHOICES "$choices"
# Allow tasksel/first to be preseeded. If it's marked as seen, then
# it must have been preseeded, and that overrides any defaults set by
# tasksel.
if [ "$question" = "tasksel/first" ]; then
db_fget $question seen
if [ "$RET" = false ]; then
db_set $question "$defaults"
fi
else
db_set $question "$defaults"
fi
db_input high $question || true
db_go || true
db_fset $question seen false
db_get $question
echo "$RET" >$tmpfile