From 93841cc4f565a27c8a7542f78e7340282a1314d9 Mon Sep 17 00:00:00 2001 From: peepsnet Date: Fri, 1 Apr 2016 01:48:49 -0400 Subject: [PATCH] Update hostapd_manager.sh --- image/hostapd_manager.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/image/hostapd_manager.sh b/image/hostapd_manager.sh index 5a181775..08ffacac 100644 --- a/image/hostapd_manager.sh +++ b/image/hostapd_manager.sh @@ -72,9 +72,9 @@ fi #### encription option check #### PASS= -if [ ! -z "$3" ]; then +if [ ! -z "$4" ]; then if [ -z `echo $4 | tr -d "[:print:]"` ] && [ ${#4} -ge 8 ] && [ ${#4} -le 63 ]; then - PASS=wpa_passphrase=$3 + PASS=wpa_passphrase=$4 else if [ $1 != "1" ]; then echo "${BOLD}${RED}Invalid PASSWORD: 8 - 63 printable characters, exiting...${WHITE}${NORMAL}" @@ -113,7 +113,7 @@ if [ -f "$HOSTAPD" ]; then fi - if [ ! -z "$3" ]; then + if [ ! -z "$4" ]; then if [ $1 != "1" ]; then echo "${MAGENTA}Adding WPA encryption with passphrase: ${YELLOW}$4 ${MAGENTA}to $HOSTAPD...${WHITE}" fi @@ -210,7 +210,7 @@ if [ -f "$HOSTAPDEDIMAX" ]; then fi - if [ ! -z "$3" ]; then + if [ ! -z "$4" ]; then if [ $1 != "1" ]; then echo "${MAGENTA}Adding WPA encryption with passphrase: ${YELLOW}$4 ${MAGENTA}to $HOSTAPD...${WHITE}" fi