How do I set my Raspberry Pi to only connect to my WiFi network if the Ethernet is disconnected?
So it should be something like:
- Booting up
- Checking if ethernet is connected
- Try for 30 seconds or so
- If no ethernet, try to connect to Wifi
- Try for 30 seconds
- if still no connection go back to 2.
Can I do that via crontab and a shell script?
I don't have a screen, keyboard or mouse attached to my RPi and it happened before that it refused to connect to any network. Maybe a priority conflict in the settings?
Running Raspberry Pi 3 Model B, on Rasbian Jessie, headless mode.