Don't show plain password in Settings screen

This commit is contained in:
Enno Boland 2014-05-07 18:57:25 +02:00
parent 30c13a8fb4
commit 92be3725d8

View File

@ -923,7 +923,10 @@ menu() {
if [ $? -eq 3 ]; then
# Show settings
DIALOG --title "Saved settings for installation" --textbox $CONF_FILE 14 60
cp $CONF_FILE /tmp/conf_hidden.$$;
sed -i "s/^ROOTPASSWORD.*/ROOTPASSWORD <-hidden->/" /tmp/conf_hidden.$$
DIALOG --title "Saved settings for installation" --textbox /tmp/conf_hidden.$$ 14 60
rm /tmp/conf_hidden.$$
return
fi