eee123
Posts: 17
Joined: Tue May 29, 2018 9:50 pm

3b+ wireless access point problems

Sun Jun 24, 2018 12:25 pm

hi all,

installed a wireless access point as of this guide:
https://www.raspberrypi.org/documentati ... s-point.md

editing rc.local and saving it, starts up the access point on boot.
can then shutdown/reboot and the network wont load on boot.

tried sleep commands to delay the start of it, still cant get it to work reliably.

any other way to go about doing this? just canot get it to work reliably on startup in rc.local

eee123
Posts: 17
Joined: Tue May 29, 2018 9:50 pm

Re: 3b+ wireless access point problems

Sun Jun 24, 2018 12:30 pm

worked out that if i open the rc.local file
then re-save it,
then reboot, it will load on boot

if i dont edit the rc.local file every time that i boot the pi then the access point wont reliably load on the next boot cycle

no idea whats wrong with it

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: 3b+ wireless access point problems

Sun Jun 24, 2018 2:21 pm

I have no idea either...

But -

If this were my problem to investigate I would edit/save the file in question and then take a copy of it. Also note the full file access dates and permissions on the working file.

Then reboot the system as usual.

Now use the diff command to compare the working version of the file with the preserved copy. Also compare the file access dates and permissions on the file subsequent to the reboot.

I don't know what you might find, but some unexpected modification might show up? (My hunch is that some process is unexpectedly making changes to that file... )

eee123
Posts: 17
Joined: Tue May 29, 2018 9:50 pm

Re: 3b+ wireless access point problems

Mon Jun 25, 2018 1:57 pm

worked out that my access point was configured to only run at boot if the ethernet to the internet is unplugged, which is fine
still weird why it was running at boot when i would edit the rc.local file though.

run into a different problem now,

trying to get the access point AND a shutdown button script to work on startup

when i run the script it works, but not when its started via rc.local
even running rc.local directly with: sudo /etc/rc.local makes it work, but not at startup so i may have an rc.local startup issue

adding the shutdown button script to the rc.local doesnt work, as per this guide:
https://www.element14.com/community/doc ... berry-pi-b

nor does it work going the direct route as per this guide:
https://howchoo.com/g/mwnlytk3zmm/how-t ... spberry-pi

trying to run it off GPIO3 so i can have a combined shutdown/startup button

any help/ideas appreciated

Return to “General discussion”