Clear value after each wifi network

This commit is contained in:
Bob Mottram 2016-05-04 15:53:28 +01:00
parent 32ed82bd67
commit 749536afcd
No known key found for this signature in database
GPG Key ID: BA68F26108DC9F87
1 changed files with 5 additions and 0 deletions

View File

@ -315,6 +315,11 @@ function create_networks_interactive {
if [ ${#WIFI_PASSPHRASE} -gt 1 ]; then
echo "$WIFI_PASSPHRASE" >> $WIFI_NETWORKS_FILE
fi
# clear values
WIFI_SSID=
WIFI_PASSPHRASE=
wifi_ctr=$((wifi_ctr + 1))
done
}