I couldn't wait for bookworm support, so I cobbled together this
method, if it helps.
You can run this from cron every now and then, with an initial
delay.
-craig
KM6LYW
/usr/local/bin/autohotspot.sh
#!/bin/sh
echo "Auto-hotspot checking network status."
STATUS=`cat /sys/class/net/wlan0/operstate`
if [ $STATUS = "down" -o $STATUS = "dormant" ]; then
??echo "Wifi network is down, enabling hot spot mode."
??nmcli connection up hotspot
fi
/etc/NetworkManager/system-connections/hotspot.nmconnection
?
[connection]
id=hotspot
uuid=dffb95a6-dedd-40d8-891e-098837c74d1b
type=wifi
autoconnect=false
interface-name=wlan0
timestamp=1700228564
[wifi]
mode=ap
ssid=raspberrypi
[wifi-security]
key-mgmt=wpa-psk
psk=yourpassword
[ipv4]
address1=10.0.0.5/24
method=shared
[ipv6]
addr-gen-mode=default
method=auto
[proxy]
On 1/5/24 15:29, Kelly K7MHI via
groups.io wrote:
toggle quoted message
Show quoted text
FYI project code was updated
k