schollz / raspberry-pi-turnkey

How to make a Raspberry Pi image that can be deployed anywhere and assigned to a WiFi network without SSH :ok_hand:
MIT License
832 stars 90 forks source link

If RPi moves or SSID changes then it never goes back to hostapd #9

Closed ilirb closed 6 years ago

ilirb commented 6 years ago

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.