added wifi autoreenable
This commit is contained in:
parent
a4433fa013
commit
9cca954710
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue