--- trunk/installer/ncurses-gui/usermanagement.sh 2010/05/30 18:21:06 1032 +++ trunk/installer/ncurses-gui/usermanagement.sh 2010/05/30 18:27:24 1033 @@ -4,7 +4,7 @@ { #ROOT_PASSWORD=$(passwordbox "root" "Enter a password for root:" 10 50) #ROOT_PASSWORD_RETYPE=$(passwordbox "root" "Re-enter the password:" 10 50) - ROOT_USER_SETUP=($(dialog \ + dialog \ --stdout \ --colors \ --title "root" \ @@ -13,10 +13,7 @@ --mixedform "Enter a password for root:" 10 60 0 \ " Username:" 1 1 "root" 1 18 36 0 2 \ " Password:" 2 1 "${ROOT_PASSWORD}" 2 18 36 0 1 \ - "Retype Password:" 3 1 "${ROOT_PASSWORD_RETYPE}" 3 18 36 0 1)) - - debug "ARRAY_LEN='${#ROOT_USER_SETUP[*]}'" - debug "ROOT_USER_SETUP='${ROOT_USER_SETUP[*]}'" + "Retype Password:" 3 1 "${ROOT_PASSWORD_RETYPE}" 3 18 36 0 1 } add_user_dialog() @@ -28,7 +25,7 @@ # USER_PASSWORD_RETYPE=$(passwordbox "${USER_NAME}" "Enter a password for '${USER_NAME}':" 10 50) #fi - USER_SETUP=($(dialog \ + dialog \ --stdout \ --colors \ --title "User-Setup" \ @@ -37,10 +34,7 @@ --mixedform "Please enter a username and password for daily use:" 10 60 0 \ " Username:" 1 1 "${USER_NAME}" 1 18 36 0 0 \ " Password:" 2 1 "${USER_PASSWORD}" 2 18 36 0 1 \ - "Retype Password:" 3 1 "${USER_PASSWORD_RETYPE}" 3 18 36 0 1)) - - debug "ARRAY_LEN='${#USER_SETUP[*]}'" - debug "USER_SETUP='${USER_SETUP[*]}'" + "Retype Password:" 3 1 "${USER_PASSWORD_RETYPE}" 3 18 36 0 1 } check_password() @@ -83,7 +77,8 @@ # ;; # esac - root_password_dialog + local ROOT_USER_SETUP + ROOT_USER_SETUP=($(root_password_dialog)) case $? in -1) die "Error!" ;; 255) die "aborted by user" ;; @@ -146,7 +141,8 @@ # ;; # esac - add_user_dialog + local USER_SETUP + USER_SETUP=($(add_user_dialog)) case $? in -1) die "Error!" ;; 255) die "aborted by user" ;;