diff --git a/src/freedombone-wifi b/src/freedombone-wifi index c59e7107..2c46d30e 100755 --- a/src/freedombone-wifi +++ b/src/freedombone-wifi @@ -323,11 +323,11 @@ function create_networks_interactive { if [ ${#WIFI_SSID} -gt 1 ]; then if [ ${#WIFI_TYPE} -gt 1 ]; then - if [[ "${#WIFI_TYPE}" == $'none' || "${#WIFI_TYPE}" == $'open' ]]; then - wifi_networks_done='yes' + if [[ "${WIFI_TYPE}" == $'none' || "${WIFI_TYPE}" == $'open' ]]; then + return else if [ ${#WIFI_PASSPHRASE} -gt 1 ]; then - wifi_networks_done='yes' + return fi fi fi