This commit is contained in:
Andras Schmelczer 2026-04-03 11:38:44 +01:00
parent 36d975545b
commit 76ccefa929
2 changed files with 21 additions and 2 deletions

8
src/wifi-check.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
if ! ping -c 1 -W 5 192.168.0.1 > /dev/null 2>&1; then
logger "WiFi check: no connectivity, restarting wlan0"
ip link set wlan0 down
sleep 2
ip link set wlan0 up
fi