On first startup it goes into hostapd mode but after it connects to a wireless the status is set to to 'connected' and if you move or change ssid the hostapd never activates:
Right before check connection is made the status is read from the file and if it was connected once the status will be 'connected'
If check connection doesn't succeed the status will be still 'connected' and written back again (line 84)
Then the condition 'elif s['status'] == 'connected'' is always met
I think I have fixed it but for some reason I can't explain I'm using Python 2.7 and if I make a PR I'm not sure it will work.
https://github.com/schollz/raspberry-pi-turnkey/blob/3d2bb5b6ff6d46be9469c5b6d3d76036a7ac91fc/startup.py#L75 and https://github.com/schollz/raspberry-pi-turnkey/blob/3d2bb5b6ff6d46be9469c5b6d3d76036a7ac91fc/startup.py#L80
On first startup it goes into hostapd mode but after it connects to a wireless the status is set to to 'connected' and if you move or change ssid the hostapd never activates:
I think I have fixed it but for some reason I can't explain I'm using Python 2.7 and if I make a PR I'm not sure it will work.