Skip to content

Instantly share code, notes, and snippets.

View treaclepumpkin's full-sized avatar
💭
Training

treaclepumpkin

💭
Training
View GitHub Profile
@carry0987
carry0987 / RPi3-Auto-WiFi.md
Last active June 16, 2024 07:50
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