Hi all,
I have an Arduino Yùn and I'd like to configure it in order to boot as a Client everytime, meaning after any powercycle.
The wifi network where is typically connected to might not be always on and so, in case of a power failure, it could re-start without the wifi signal in the air but I don't want him to turn in the Access Point configuration.
Is there a way to do it?
PS: I wouldn't love a continuity battery
Edit the file [color=blue]/etc/rc.local[/color] and change the line [color=blue]wifi-live-or-reset[/color] to [color=blue][b]#[/b]wifi-live-or-reset[/color]. Then reboot.
You can do this at the SSH command line, or you can log into your Yun's configuration web pages and:
- Select Configure
- Select Advanced Configuration
- Select the System tab
- Select the Startup sub-tab
- Scroll down and modify the contents of the Local Startup edit box.
wifi-live-or-reset is the script that checks whether the WiFi interface is connected to a hotspot. If not, it resets the configuration back to the default access point mode and restarts.
/etc/rc.local is a command file that is run as part of the startup process. It runs the commands you want to happen each time Linux starts.
By adding the # to the beginning of the line! you are commenting out the line so the wifi-live-or-reset script won't run each time. This will prevent your configuration from resetting if the access point is temporarily unavailable.
A backup battery is an interesting idea, but the Yun is not very power efficient, because of the Linux processor and a WiFi radio. You would need a rather large battery.
Thank you very much ShapeShifter,
very clear and helpfull!