create_ap

create a nat-ed wifi ap
git clone git://git.2f30.org/create_ap
Log | Files | Refs | README | LICENSE

commit 513f1fce1994400c71299776d99335d4372f219d
parent 3c3df2201b97268c6b31446eaa24eda9786f49b2
Author: oblique <psyberbits@gmail.com>
Date:   Sun, 17 Nov 2013 23:28:10 +0200

Add 'Retype passphrase'

Diffstat:
Mcreate_ap | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git 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