From 7f6f1394e04b790e232f9c0bd18f202e36aafc39 Mon Sep 17 00:00:00 2001 From: cyoung Date: Fri, 22 Sep 2017 10:55:54 -0400 Subject: [PATCH] Activate config change block for $OPT_P (-p option). Ref #667. --- image/hostapd_manager.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/image/hostapd_manager.sh b/image/hostapd_manager.sh index bc23253d..fa95cb32 100644 --- a/image/hostapd_manager.sh +++ b/image/hostapd_manager.sh @@ -274,6 +274,10 @@ do fi fi + if [ $OPT_P != false ]; then + OPT_E=$OPT_P + fi + if [ $OPT_E != false ]; then echo "${MAGENTA}Adding WPA encryption with passphrase: ${YELLOW}$OPT_E ${MAGENTA}to $i...${WHITE}" if grep -q "^#auth_algs=" ${i}; then