Skip to content

Instantly share code, notes, and snippets.

View Creat1veM1nd's full-sized avatar

Creat1veM1nd Creat1veM1nd

View GitHub Profile
@Creat1veM1nd
Creat1veM1nd / RPi3-Auto-WiFi.md
Created March 1, 2026 09:09 — forked from carry0987/RPi3-Auto-WiFi.md
Raspberry Pi 3B+ Auto reconnect to wifi when lost connect

Auto reconnect to wifi when lost connection

Before you start, make sure ip command is available on your system. In modern Linux distributions, ip replaces older ifconfig command. If net-tools package (that includes ifconfig) is not installed and you prefer using it, you can install it via sudo apt-get install net-tools.

Create script file

Use touch /home/pi/wifi-reconnect.sh to create a shell script file, with the following content:

#!/bin/bash