Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:raspbian [2023/10/05 02:07] – [WiFi problems] darron | tools:raspbian [2024/05/16 11:52] (current) – [Upgrade] darron | ||
---|---|---|---|
Line 327: | Line 327: | ||
==Keep alive== | ==Keep alive== | ||
- | The Pi4 can both disconnect with wpa_supplicant still running or even crash. | + | Pi4 WiFi can both disconnect with wpa_supplicant still running or crash. |
- | In the former case a script | + | In the former case we can reconnect but in the latter a reboot is required. |
< | < | ||
- | #! /bin/sh | + | #! /bin/bash |
+ | |||
+ | check() { | ||
+ | LOSS=`ping -c 3 -i 1 192.168.0.1 | awk ' | ||
+ | } | ||
while test 1; do | while test 1; do | ||
sleep 30 | sleep 30 | ||
- | | + | |
if test " | if test " | ||
ifdown wlan0 1>/ | ifdown wlan0 1>/ | ||
ifup wlan0 1>/ | ifup wlan0 1>/ | ||
+ | sleep 5 | ||
+ | check | ||
+ | if test " | ||
+ | reboot | ||
+ | fi | ||
fi | fi | ||
done | done | ||
Line 365: | Line 374: | ||
EG. | EG. | ||
+ | |||
+ | to bullseye from buster | ||
< | < | ||
sed -i ' | sed -i ' | ||
</ | </ | ||
+ | |||
+ | or edit for from bullseye to bookworm | ||
+ | < | ||
+ | deb http:// | ||
+ | deb http:// | ||
+ | deb http:// | ||
+ | </ | ||
+ | |||
+ | If keys need importing (if import fails try again, and again) | ||
+ | |||
+ | < | ||
+ | apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0E98404D386FA1D9 | ||
+ | apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 6ED0E7B82643E131 | ||
+ | apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F8D2585B8783D481 | ||
+ | apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 54404762BBB6E853 | ||
+ | apt-key adv --recv-keys --keyserver keyserver.ubuntu.com BDE6D2B9216EC7A8 | ||
+ | </ | ||
+ | |||
Update | Update | ||
Line 379: | Line 408: | ||
Change RPi sources list | Change RPi sources list | ||
+ | |||
< | < | ||
Line 384: | Line 414: | ||
</ | </ | ||
+ | or | ||
+ | |||
+ | < | ||
+ | sed -i ' | ||
+ | </ | ||
Update | Update | ||