Add 'Retype passphrase'

This commit is contained in:
oblique 2013-11-17 23:28:10 +02:00
parent 3c3df2201b
commit 513f1fce19

View File

@ -124,8 +124,17 @@ else
fi
if tty -s; then
read -p "SSID: " SSID
read -p "Passphrase: " -s PASSPHRASE
echo
while :; do
read -p "Passphrase: " -s PASSPHRASE
echo
read -p "Retype passphrase: " -s PASSPHRASE2
echo
if [[ "$PASSPHRASE" != "$PASSPHRASE2" ]]; then
echo "Passphrases do not match."
else
break
fi
done
else
read SSID
read PASSPHRASE