1 #- beginning of included section from get-pw-from-debconf.config
2 get_pw () { # Use Debconf to get a password
6 while [ -z "$get_pw__ok" ] ; do
7 db_input ${get_pw__priority} ${get_pw__pwname} || get_pw__retcode=$? || true
8 db_input ${get_pw__priority} ${get_pw__pwname}_confirm || true
10 if [ "$get_pw__retcode" = 30 ] ; then
11 get_pw__ok="not-asked"
13 db_get ${get_pw__pwname} || true
15 db_get ${get_pw__pwname}_confirm || true
17 if [ "$get_pw__PW1" = "$get_pw__PW2" ] ; then
18 get_pw__ok="confirmed"
21 db_fset ${get_pw__pwname} seen false
22 db_fset ${get_pw__pwname}_confirm seen false
34 echo "SHOULDN'T HAVE HAPPENED"
39 #- end of included section from get-pw-from-debconf.config