Add 'Retype passphrase'
This commit is contained in:
13
create_ap
13
create_ap
@ -124,8 +124,17 @@ else
|
|||||||
fi
|
fi
|
||||||
if tty -s; then
|
if tty -s; then
|
||||||
read -p "SSID: " SSID
|
read -p "SSID: " SSID
|
||||||
read -p "Passphrase: " -s PASSPHRASE
|
while :; do
|
||||||
echo
|
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
|
else
|
||||||
read SSID
|
read SSID
|
||||||
read PASSPHRASE
|
read PASSPHRASE
|
||||||
|
Reference in New Issue
Block a user