/usr/share/configure-debian/configure-debian-debconf is in configure-debian 1.0.2-0.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/bin/sh
. /usr/share/debconf/confmodule
set -e
frontend="$1"
tmpfile=$2
question=$3
choices="$4"
defaults="$5"
db_capb backup
# Customize our frontend if we're passed one
if [ "$frontend" != "FALSE" ]; then
db_get "debconf/frontend"
echo "$RET" >$tmpfile
#REALFRONTEND="$RET"
db_set "debconf/frontend" "$frontend"
# We've already customized our frontend, so just ask the question
else
db_fset $question seen false
db_reset $question
db_settitle configure-debian/title
if [ "$choices" ]; then
db_subst $question CHOICES "$choices"
fi
if [ "$defaults" ]; then
db_set $question "$defaults"
fi
db_input high $question || true
if db_go; then
db_get $question
echo "$RET" >$tmpfile
else
echo '##BACKUP##' >$tmpfile
fi
# if [ "$REALFRONTEND" ]; then
# db_set "debconf/frontend" "$REALFRONTEND"
# fi
fi
|