Ver código fonte

Clear value after each wifi network

Bob Mottram 9 anos atrás
pai
commit
749536afcd
Nenhuma conta conectada ao e-mail do autor de commit
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5
    0
      src/freedombone-wifi

+ 5
- 0
src/freedombone-wifi Ver arquivo

315
         if [ ${#WIFI_PASSPHRASE} -gt 1 ]; then
315
         if [ ${#WIFI_PASSPHRASE} -gt 1 ]; then
316
             echo "$WIFI_PASSPHRASE" >> $WIFI_NETWORKS_FILE
316
             echo "$WIFI_PASSPHRASE" >> $WIFI_NETWORKS_FILE
317
         fi
317
         fi
318
+
319
+        # clear values
320
+        WIFI_SSID=
321
+        WIFI_PASSPHRASE=
322
+
318
         wifi_ctr=$((wifi_ctr + 1))
323
         wifi_ctr=$((wifi_ctr + 1))
319
     done
324
     done
320
 }
325
 }