added wifi autoreenable

This commit is contained in:
andrea.noni 2024-04-16 13:03:00 +02:00
parent a4433fa013
commit 9cca954710
1 changed files with 9 additions and 1 deletions

View File

@ -16,6 +16,14 @@ DEVICE_STATUS=$(wifi status | grep -c "\"disabled\": false")
-H "Title: Wifi down in $HOST" \ -H "Title: Wifi down in $HOST" \
-H "Priority: high" \ -H "Priority: high" \
-H "Tags: warning,boar" \ -H "Tags: warning,boar" \
$topicurl $topicurl ;
# automatically enable wifi on both devices, store and restart wifi devices
uci set wireless.radio0.disabled='0' ;
uci set wireless.radio1.disabled='0' ;
uci commit wireless ;
wifi reload
fi fi