Update openwrt_wifi_up.sh

This commit is contained in:
tech 2024-04-29 15:47:42 +02:00
parent a63c483c3d
commit 275e1dc5dc
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ topicurl=https://NTFY_SERVER_IP/hangar_servers
RADIO_STATUS=$(wifi status | grep -c "\"up\": true")
DEVICE_STATUS=$(wifi status | grep -c "\"disabled\": false")
if [ ${RADIO_STATUS} != 2 ] || [ ${DEVICE_STATUS} != 2 ] ; then
if [ ${RADIO_STATUS} -lt 2 ] || [ ${DEVICE_STATUS} -lt 2 ] ; then
curl -k --retry 3 \
-d "wifi down in $HOST" \
-H "Title: Wifi down in $HOST" \