Update openwrt_wifi_up.sh
This commit is contained in:
parent
a63c483c3d
commit
275e1dc5dc
|
@ -10,7 +10,7 @@ topicurl=https://NTFY_SERVER_IP/hangar_servers
|
||||||
RADIO_STATUS=$(wifi status | grep -c "\"up\": true")
|
RADIO_STATUS=$(wifi status | grep -c "\"up\": true")
|
||||||
DEVICE_STATUS=$(wifi status | grep -c "\"disabled\": false")
|
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 \
|
curl -k --retry 3 \
|
||||||
-d "wifi down in $HOST" \
|
-d "wifi down in $HOST" \
|
||||||
-H "Title: Wifi down in $HOST" \
|
-H "Title: Wifi down in $HOST" \
|
||||||
|
|
Loading…
Reference in New Issue