From 513f1fce1994400c71299776d99335d4372f219d Mon Sep 17 00:00:00 2001 From: oblique Date: Sun, 17 Nov 2013 23:28:10 +0200 Subject: [PATCH] Add 'Retype passphrase' --- create_ap | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/create_ap b/create_ap index a72489c..935124a 100755 --- a/create_ap +++ b/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