Skip to content

Instantly share code, notes, and snippets.

@AlexanderWyss
AlexanderWyss / RPi3-Auto-WiFi.md
Created September 10, 2021 20:42 — forked from carry0987/RPi3-Auto-WiFi.md
Raspberry Pi 3B+ Auto reconnect to wifi when lost connect

Auto reconnect to wifi when lost connect

Create script file

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

#!/bin/bash 
 
SSID=$(/sbin/iwgetid --raw)