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

To fast reboot at the end of the install.sh script ? #3

Open
Falcon64 opened this issue Mar 31, 2020 · 2 comments
Open

To fast reboot at the end of the install.sh script ? #3

Falcon64 opened this issue Mar 31, 2020 · 2 comments

Comments

@Falcon64
Copy link

I had a lot of problems with the script. Sometime I could not get internet access on the AP.

I think the problem was that the raspberry pie rebooted to fast at the end of the installation script. Looks like all the configuration did not have time to write the data from memory to the SD card before it rebooted. Maybe the last commands in the script was not saved ?

I put an sleep 10, command at the end of the installation script before the reboot so all the files was written to the card. At this time I had no problem. Maybe I had an slow SD card or something. It was on an Raspberry Pi 3B+

echo "WIRELESS:"
echo "##########"
echo "Output of: $(tput setaf 9)iw dev wlan0 info$(tput sgr 0)"
iw dev wlan0 info
echo
echo "Output of: $(tput setaf 9)iwconfig wlan0$(tput sgr 0)"
iwconfig wlan0
echo

echo "Config Completed. Host will reboot now"
sleep 10
echo
systemctl reboot

@f1linux
Copy link
Owner

f1linux commented Mar 31, 2020

During coronavirus lockdown I was going to spend some time on pi-ap, so I'll see if I can recreate your issue shortly. pi-ap has been out since last summer, but first time I've heard about this issue. (Maybe others have had it but not reported it). Just in the middle of upgrading my BIND infrastructure so need to kill that off before context switching. Much thanks for the feedback to help improve pi-ap!

@marcnadeau
Copy link

I did try the script on a Pi 4 and could not see the AP in my list of Wi-Fi networks... Stumbled upon this post, re-flashed the device and added a 30-second sleep at the end of install script and it did work for me too! Thanks @Falcon64

@f1linux your script is really nice!

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

3 participants