Don't read from file when creating hotspot

This commit is contained in:
Bob Mottram 2017-06-19 19:42:18 +01:00
parent 9017806ec2
commit e5da5f89cf
1 changed files with 29 additions and 27 deletions

View File

@ -165,6 +165,7 @@ if [ ${WIFI_DISABLE} ]; then
exit 0 exit 0
fi fi
if [[ ${WIFI_HOTSPOT} == 'no' ]]; then
if [ -f ${WIFI_NETWORKS_FILE} ]; then if [ -f ${WIFI_NETWORKS_FILE} ]; then
wifi_established= wifi_established=
wifi_retry_ctr=0 wifi_retry_ctr=0
@ -195,6 +196,7 @@ if [ -f ${WIFI_NETWORKS_FILE} ]; then
exit 4 exit 4
fi fi
fi fi
fi
if [ ! ${WIFI_SSID} ]; then if [ ! ${WIFI_SSID} ]; then
echo $'No SSID given' echo $'No SSID given'