Add 'Retype passphrase'
This commit is contained in:
parent
3c3df2201b
commit
513f1fce19
13
create_ap
13
create_ap
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user