A script to allow the Raspberry Pi to connect to a known WiFi network or automatically generate an Access Point if no network is found. You can then use SSH
or VNC
on the move and switch between the hotspot and network without a reboot.
- HostAPD (Access Point) on
wlan0
- WiFi Connection on
wlan1
oreth0
- Two WiFi Cards (e.g. On-board chip + TL-WN725N)
- Micro-USB to USB 2.0/3.0 converter (e.g. USB to Micro-USB Charge & Sync Cable)
- Portable Battery Bank (e.g. Anker PowerCore 5000)
Older versions may work but aren't regularly tested. Bug reports for older versions are welcome.
Note: some WiFi dongles don't work in adhoc mode
or don't work with with the nl80211 driver
used in this guide for the Raspberry Pi 3
, so consult your WiFi dongle manual before starting.
Download, review, then execute the script:
git clone git://github.com/NicholasAdamou/Raspberry-Pi-Auto-WiFi-Hotspot-Switch-Internet.git && cd Raspberry-Pi-Auto-WiFi-Hotspot-Switch-Internet && ./src/setup.sh
Follow the on-screen directions.
It should take less than 5 minutes to install.
Auto-WiFi-Hotspot is © 2020 Nicholas Adamou.
It is free software, and may be redistributed under the terms specified in the LICENSE file.