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