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