From 9cca9547101ac69b0f7cbf7b0a8a5378045c23c1 Mon Sep 17 00:00:00 2001 From: "andrea.noni" Date: Tue, 16 Apr 2024 13:03:00 +0200 Subject: [PATCH] added wifi autoreenable --- openwrt_wifi_up.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/openwrt_wifi_up.sh b/openwrt_wifi_up.sh index 363260b..a0b13fa 100755 --- a/openwrt_wifi_up.sh +++ b/openwrt_wifi_up.sh @@ -16,6 +16,14 @@ DEVICE_STATUS=$(wifi status | grep -c "\"disabled\": false") -H "Title: Wifi down in $HOST" \ -H "Priority: high" \ -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