Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First boot wifi issue with raspbian strecht ? #172

Open
romaindudek opened this issue Jan 21, 2019 · 2 comments
Open

First boot wifi issue with raspbian strecht ? #172

romaindudek opened this issue Jan 21, 2019 · 2 comments

Comments

@romaindudek
Copy link

Hi,

First of all, thanks a lot for this wonderfull app ! Great idea and great dev !

I'm facing a little issue wich I think might be related to latest images of debian (strecht)... I need my pi to connect via wifi at the fisrt boot as I need some downloads to occur at first boot to complete my configuration process...

And I dont think it works properly... I have to wait for about 4 minutes10sec before the wifi process is complete (wich I think is the duration of the loop in the waitForNetwork.sh script).

And I wonder about the
os.system("wpa_cli reconfigure")
instruction in the wifiConnect.py file...

I think (maybe) it is not enough to relaunch the wifi daemon...

Do you have any idea ?
Maybe adding
sudo ifdown wlan0
sudo ifup wlan0
would work ?

Thanks !

@oliveiraallex
Copy link

I fixed this issue in this PR #174
You can fix in your SD card editing the same line file wifiConnect.py before insert in the Raspberry.
What is happening, is the command wpa_cli reconfigure is selecting another interface (p2p-dev-wlan0) and not the wlan0. So you need to set this parameter "-i wlan0" to its work.

@oliveiraallex
Copy link

While the fix is not merged, you can also create a block "Run Command" on First Boot with the command below. It will create the correct line in the file. This block needs to be the first block.

ex -s -c '49i|os.system("wpa_cli -i wlan0 reconfigure")' -c x /boot/PiBakery/blocks/wifisetup/wifiConnect.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants