1 # by ddzeko, Mon, 21 Mar 2005 13:35:42 +0100
3 [ "$CP_SCRIPT_DEBUG" ] && set -vx
6 [ "$prompt" ] || prompt="Are you sure?"
9 # check to prevent user from using this when debconf is active
10 # (it would break communication with its backend - uses stdin/out)
11 if [ "$DEBCONF_REDIR" ]; then
12 echo "cn_yes_no: debconf redirection detected" >&2
16 echo -n "$prompt (y)es/(n)o: "
29 echo "Please read the message and choose y or n"